Feature Requestgood first issue
Metriche repository
- Star
- (484 stelle)
- Metriche merge PR
- (Metriche PR in attesa)
Descrizione
Phantom types are very useful for tagging things on type level, but at the moment this code will not compile
-- @Employment.hs
{-# LANGUAGE TemplateHaskell #-}
module Employment where
import Database.Persist.TH
import Prelude
data Employment a = Employed | Unemployed | Retired
deriving (Show, Read, Eq)
derivePersistField "Employment a"