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