forked from purescript/purescript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathModule.hs
More file actions
30 lines (26 loc) · 914 Bytes
/
Module.hs
File metadata and controls
30 lines (26 loc) · 914 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
-----------------------------------------------------------------------------
--
-- Module : Language.PureScript.Core.Module
-- Copyright : (c) 2013-14 Phil Freeman, (c) 2014 Gary Burgess, and other contributors
-- License : MIT
--
-- Maintainer : Phil Freeman <paf31@cantab.net>, Gary Burgess <gary.burgess@gmail.com>
-- Stability : experimental
-- Portability :
--
-- | The Core module representation
--
-----------------------------------------------------------------------------
module Language.PureScript.Core.Module where
import Language.PureScript.Comments
import Language.PureScript.Names
import Language.PureScript.Types
data Module a f = Module
{ moduleComments :: [Comment]
, moduleName :: ModuleName
, moduleImports :: [ModuleName]
, moduleExports :: [Ident]
, moduleForeign :: [ForeignDecl]
, moduleDecls :: [a]
} deriving (Show)
type ForeignDecl = (Ident, Type)