1{-# LANGUAGE DeriveDataTypeable #-}
2module SourceSyntax.Module where
5import Data.List (intercalate)
6import qualified SourceSyntax.Declaration as Decl
7import System.FilePath (joinPath)
10data Module = Module [String] Exports Imports [Decl.Declaration]
13type Exports = [String]
15type Imports = [(String, ImportMethod)]
16data ImportMethod = As String | Importing [String] | Hiding [String]
17 deriving (Eq, Ord, Show, Data, Typeable)
19name :: Module -> String
20name (Module names _ _ _) = intercalate "." names
22path :: Module -> FilePath
23path (Module names _ _ _) = joinPath names
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