Dhall configuration

This commit is contained in:
2018-08-02 23:07:05 +03:00
parent 6d08e9dad4
commit 7c08c46c16
9 changed files with 64 additions and 6 deletions

19
src/Configuration.hs Normal file
View File

@ -0,0 +1,19 @@
{-# Language NoImplicitPrelude #-}
{-# Language DeriveGeneric #-}
{-# Language DuplicateRecordFields #-}
module Configuration where
import ClassyPrelude
import Dhall (Interpret)
data Pg = Pg { username :: Text
, password :: Text
, host :: Text
, database :: Text }
deriving (Show, Generic)
newtype Config = Config { database :: Pg } deriving (Show, Generic)
instance Interpret Pg
instance Interpret Config