1{-# LANGUAGE OverloadedStrings #-}
2module Elm.Internal.Documentation where
4import Control.Applicative ((<$>),(<*>))
18 , assocPrec :: Maybe (String,Int)
21instance FromJSON Document where
22 parseJSON (Object v) =
25 <*> (concat <$> sequence [ v .: "aliases", v .: "datatypes", v .: "values" ])
27 parseJSON _ = fail "Conversion to Document was expecting an object"
29instance FromJSON Entry where
30 parseJSON (Object v) =
34 <*> (liftM2 (,) <$> v .:? "associativity"
35 <*> v .:? "precedence")
37 parseJSON _ = fail "Conversion to Entry was expecting an object"
39data Content = Markdown String | Value String
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