Safe Haskell | None |
---|---|
Language | Haskell2010 |
reads config or any valid json file and parses it to a Haskell type
arg: full or relative (to current directory) path to the json file
import Data.Aeson import GHC.Generics data TestProp = TestProp { prop::Int } deriving (Generic,Eq,Show) instance FromJSON TestProp