Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 7928f3cfbf
Fetching contributors…

Cannot retrieve contributors at this time

file 14 lines (11 sloc) 0.27 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14
{-# LANGUAGE DeriveDataTypeable #-}
module Records where

import Data.Data

data TopLevel = TopLevel {
thing :: Int,
subs :: [SubLevel]
} deriving (Eq, Data, Typeable)

data SubLevel = SubLevel {
thing2 :: Bool,
other :: Maybe String
} deriving (Eq, Data, Typeable)
Something went wrong with that request. Please try again.