14 lines
233 B
Haskell
14 lines
233 B
Haskell
|
{-# OPTIONS -fglasgow-exts #-}
|
||
|
-- ^ needed to derive Typeable
|
||
|
|
||
|
module API where
|
||
|
|
||
|
import Data.Dynamic
|
||
|
|
||
|
data Interface = Interface { field :: String }
|
||
|
deriving (Show)
|
||
|
|
||
|
rsrc :: Interface
|
||
|
rsrc = Interface { field = "default value" }
|
||
|
|