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.core raw
24inHtml :: Raw -> Canonical
26 Canonical Package.html raw
29toString :: Raw -> String
31 List.intercalate "." rawName
34canonicalToString :: Canonical -> String
35canonicalToString (Canonical _ rawName) =
39isNative :: Raw -> Bool
49instance Binary Canonical where
50 put (Canonical home name) =
54 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