Feature Requestgood first issue
Repository-Metriken
- Stars
- (484 Sterne)
- PR-Merge-Metriken
- (PR-Metriken ausstehend)
Beschreibung
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"