git.iko.soy/rowtype-yoga/purescript-native
on fb48912 help sign in
33 lines 855 B history raw
1-----------------------------------------------------------------------------
2--
3-- Module : PureScript.Declarations
4-- Copyright : (c) Phil Freeman 2013
5-- License : MIT
6--
7-- Maintainer : Phil Freeman <paf31@cantab.net>
8-- Stability : experimental
9-- Portability :
10--
11-- |
12--
13-----------------------------------------------------------------------------
15module PureScript.Declarations (
16 Declaration (..),
17 DataConstructors (..)
18) where
20import PureScript.Values
21import PureScript.Types
23data Declaration
24 = DataDeclaration DataConstructors
25 | TypeDeclaration String Type
26 | ValueDeclaration String Value
27 | ExternDeclaration String Type deriving Show
29data DataConstructors = DataConstructors
30 { typeConstructorName :: String
31 , typeArguments :: [String]
32 , dataConstructors :: [(String, Maybe Type)]
33 } deriving Show