1{-# LANGUAGE LambdaCase #-}
2{-# LANGUAGE ScopedTypeVariables #-}
3{-# LANGUAGE TemplateHaskell #-}
8 -- * Re-exports from "Data.Yaml"
22import Data.Yaml hiding (decodeFile)
23import Language.Haskell.TH
24import Language.Haskell.TH.Syntax
26-- | Decode a @yaml@ file at compile time. Only available on GHC version @7.8.1@
34-- {-\# LANGUAGE TemplateHaskell \#-}
37-- config = $$('decodeFile' "config.yaml")
39decodeFile :: forall a. (Lift a, FromJSON a) => FilePath -> Q (TExp a)
42 runIO (decodeFileEither path) >>= \case
43 Left err -> fail (prettyPrintParseException err)
44 Right x -> fmap TExp (lift (x :: a))
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list