1{-# LANGUAGE DataKinds #-}
2{-# LANGUAGE DeriveGeneric #-}
3{-# LANGUAGE DerivingStrategies #-}
4{-# LANGUAGE GeneralizedNewtypeDeriving #-}
5{-# LANGUAGE OverloadedStrings #-}
6{-# LANGUAGE TypeOperators #-}
12import Data.Typeable (Typeable)
13import GHC.Generics (Generic)
17 deriving (Generic, Eq, Show, Typeable)
18 deriving newtype (FromHttpApiData, ToHttpApiData)
27 "item" :> Get '[JSON] Foo
28 :<|> "itemAdd" :> Capture "one" Foo :> Capture "two" Foo :> Get '[JSON] Foo
29 :<|> "item" :> Capture "itemId" Foo :> Get '[JSON] ()
34combine :: Foo -> Foo -> Handler Foo
35combine (Foo a) (Foo b) = pure (Foo (a + b))
37eliminate :: Foo -> Handler ()
39 | a > 10 = throwError $ err500 {errBody = "eliminate blew up, oh no!"}
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