1{-# LANGUAGE DataKinds #-}
2{-# LANGUAGE DeriveGeneric #-}
3{-# LANGUAGE DerivingStrategies #-}
5{-# LANGUAGE OverloadedStrings #-}
6{-# LANGUAGE TypeOperators #-}
13import Servant.Server.Generic
17 :<|> Capture "void" Void :> Get '[JSON] ()
23 :- Summary "i'm a summary!" :> Get '[JSON] Int,
26 :- Capture "void" Void :> Get '[JSON] ()
30type RoutedApi = ToServantApi Routes
32-- routedApi = genericApi (Proxy :: Proxy Routes)
33routedServer :: Server RoutedApi
34routedServer = genericServer routes
36routes :: Routes AsServer
40 captureIt = const (pure ())
44server = pure 7 :<|> const (pure ())
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