Created
April 18, 2014 21:41
-
-
Save minamiyama1994/11065702 to your computer and use it in GitHub Desktop.
Yesodのmodelで好きな型をフィールドの型に使えるようにしたい ref: http://qiita.com/minamiyama1994/items/c0c5ca87948601dc0d84
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 Helper where | |
import Database.Persist.TH | |
import UserModule ( UserDefineType ) | |
derivePersistField "UserDefineType" |
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
--色々 | |
import UserModule ( UserDefineType ) | |
import Helper ( ) | |
--色々 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment