Created
September 11, 2019 08:56
-
-
Save ocharles/1eb5532910bd65a3e1c11c880a1da349 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{-# 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 | |
|] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cradle: | |
direct: | |
arguments: | |
- -Wall |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Settings where | |
import Database.Persist.TH | |
settings = sqlSettings |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{-# 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