Skip to content

Instantly share code, notes, and snippets.

@pjones
Created Nov 15, 2017
Embed
What would you like to do?
name: issue76
version: 0.1.0.0
license: BSD3
author: Peter J. Jones
maintainer: pjones@devalot.com
build-type: Simple
cabal-version: >=1.10
library
exposed-modules:
Person
default-language: Haskell2010
ghc-options: -Wall -fwarn-incomplete-uni-patterns
build-depends: base >= 4.9 && < 5
, groundhog >= 0.8 && < 0.9
, groundhog-th >= 0.8 && < 0.9
, text >= 1.2 && < 1.3
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE QuasiQuotes #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StandaloneDeriving #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE TypeFamilies #-}
module Person where
import Data.Text (Text)
import Database.Groundhog
import Database.Groundhog.TH
data Person = Person
{ personName :: Text
, personAge :: Int
}
mkPersist defaultCodegenConfig [groundhog|
entity: Person
|]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment