1{-# LANGUAGE DeriveDataTypeable #-}
2module SourceSyntax.Module where
5import Data.List (intercalate)
6import qualified Data.Map as Map
8import SourceSyntax.Expression
9import SourceSyntax.Declaration
10import SourceSyntax.Type
11import System.FilePath (joinPath)
12import qualified Type.Type as T
15 Module [String] Exports Imports [Declaration tipe var]
18type Exports = [String]
20type Imports = [(String, ImportMethod)]
21data ImportMethod = As String | Importing [String] | Hiding [String]
22 deriving (Eq, Ord, Show, Data, Typeable)
24data MetadataModule t v = MetadataModule {
28 imports :: [(String, ImportMethod)],
30 types :: Map.Map String T.Variable,
31 fixities :: [(Assoc, Int, String)],
32 aliases :: [(String, [String], Type)],
33 datatypes :: [ (String, [String], [(String,[Type])]) ],
34 foreignImports :: [(String, LExpr t v, String, Type)],
35 foreignExports :: [(String, String, Type)]
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list