1{-# OPTIONS_GHC -Wall #-}
2{-# LANGUAGE OverloadedStrings #-}
6 , inVirtualDom, inCore, inHtml
7 , toString, toText, canonicalToText
8 , isKernel, getKernel, canonicalIsKernel
13import qualified Data.Text as Text
14import Data.Text (Text)
16import qualified Elm.Package as Package
23type Raw = Text -- must be non-empty
28 { _package :: !Package.Name
38inVirtualDom :: Raw -> Canonical
40 Canonical Package.virtualDom raw
43inCore :: Raw -> Canonical
45 Canonical Package.core raw
48inHtml :: Raw -> Canonical
50 Canonical Package.html raw
57toString :: Raw -> String
68canonicalToText :: Canonical -> Text
69canonicalToText (Canonical _ name) =
77isKernel :: Raw -> Bool
79 Text.isPrefixOf "Elm.Kernel." name
82getKernel :: Raw -> Text
87canonicalIsKernel :: Canonical -> Bool
88canonicalIsKernel (Canonical _ name) =
96instance Binary Canonical where
97 put (Canonical home name) =
101 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