module Test.Cardano.Ledger.Allegra.Binary.Cddl ( readAllegraCddlFileNames, readAllegraCddlFiles, ) where import qualified Data.ByteString.Lazy as BSL import Paths_cardano_ledger_allegra readAllegraCddlFileNames :: IO [FilePath] readAllegraCddlFileNames :: IO [FilePath] readAllegraCddlFileNames = do FilePath base <- FilePath -> IO FilePath getDataFileName FilePath "cddl-files/allegra.cddl" forall (f :: * -> *) a. Applicative f => a -> f a pure [FilePath base] readAllegraCddlFiles :: IO [BSL.ByteString] readAllegraCddlFiles :: IO [ByteString] readAllegraCddlFiles = 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] readAllegraCddlFileNames