module Test.Cardano.Ledger.Alonzo.Binary.Cddl ( readAlonzoCddlFileNames, readAlonzoCddlFiles, ) where import qualified Data.ByteString.Lazy as BSL import Paths_cardano_ledger_alonzo readAlonzoCddlFileNames :: IO [FilePath] readAlonzoCddlFileNames :: IO [FilePath] readAlonzoCddlFileNames = do FilePath base <- FilePath -> IO FilePath getDataFileName FilePath "cddl-files/alonzo.cddl" forall (f :: * -> *) a. Applicative f => a -> f a pure [FilePath base] readAlonzoCddlFiles :: IO [BSL.ByteString] readAlonzoCddlFiles :: IO [ByteString] readAlonzoCddlFiles = forall (t :: * -> *) (m :: * -> *) a b. (Traversable t, Monad m) => (a -> m b) -> t a -> m (t b) mapM FilePath -> IO ByteString BSL.readFile forall (m :: * -> *) a b. Monad m => (a -> m b) -> m a -> m b =<< IO [FilePath] readAlonzoCddlFileNames