packages feed

tilia-0.2.0.0: corpora/vendored/cpp/expression/operator-and-operand-at-the-end-behind-a-conditional.hs

{-# LANGUAGE CPP #-}

module Kitchen.Recipes (readRecipe) where

readRecipe :: FilePath -> IO Text
readRecipe path =
  T.readFile path
#if defined(BUNDLED)
  `catch` \(e :: IOException) ->
    maybe (throwIO e)
          (pure . decodeUtf8)
          (lookup path bundled)
#endif