module Test.Cardano.Ledger.Conway.Binary.Cddl (
  readConwayCddlFileNames,
  readConwayCddlFiles,
) where

import qualified Data.ByteString.Lazy as BSL
import Paths_cardano_ledger_conway

readConwayCddlFileNames :: IO [FilePath]
readConwayCddlFileNames :: IO [FilePath]
readConwayCddlFileNames = do
  FilePath
base <- FilePath -> IO FilePath
getDataFileName FilePath
"cddl-files/conway.cddl"
  forall (f :: * -> *) a. Applicative f => a -> f a
pure [FilePath
base]

readConwayCddlFiles :: IO [BSL.ByteString]
readConwayCddlFiles :: IO [ByteString]
readConwayCddlFiles = 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]
readConwayCddlFileNames