Skip to content

Instantly share code, notes, and snippets.

@ocharles
Created September 11, 2019 08:56
Show Gist options
  • Save ocharles/1eb5532910bd65a3e1c11c880a1da349 to your computer and use it in GitHub Desktop.
Save ocharles/1eb5532910bd65a3e1c11c880a1da349 to your computer and use it in GitHub Desktop.
{-# language GADTs #-}
{-# language GeneralizedNewtypeDeriving #-}
{-# language QuasiQuotes #-}
{-# language TemplateHaskell #-}
{-# language TypeFamilies #-}
module Bug where
import Settings ( settings )
import Yesod.Persist ( share, mkPersist, persistUpperCase )
share [mkPersist settings] [persistUpperCase|
Foo
Id Int
|]
cradle:
direct:
arguments:
- -Wall
module Settings where
import Database.Persist.TH
settings = sqlSettings
{-# language GADTs #-}
{-# language GeneralizedNewtypeDeriving #-}
{-# language QuasiQuotes #-}
{-# language TemplateHaskell #-}
{-# language TypeFamilies #-}
module Works where
import Database.Persist.TH ( sqlSettings )
import Yesod.Persist ( share, mkPersist, persistUpperCase )
share [mkPersist sqlSettings] [persistUpperCase|
Foo
Id Int
|]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment