1module AST.Module.Name where
4import qualified Data.List as List
6import qualified Elm.Package as Package
9type Raw = [String] -- must be non-empty
12data Canonical = Canonical
13 { _package :: Package.Name
16 deriving (Eq, Ord, Show)
19inCore :: Raw -> Canonical
21 Canonical Package.coreName raw
24toString :: Raw -> String
26 List.intercalate "." rawName
29canonicalToString :: Canonical -> String
30canonicalToString (Canonical _ rawName) =
34isNative :: Raw -> Bool
44instance Binary Canonical where
45 put (Canonical home name) =
49 Canonical <$> get <*> get
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