change a dependency and delete EmptyConfig
This commit is contained in:
parent
85ce21214a
commit
d5b5780931
1 changed files with 2 additions and 2 deletions
|
@ -29,7 +29,7 @@ import Prelude.Compat
|
||||||
import Control.Monad.IO.Class
|
import Control.Monad.IO.Class
|
||||||
import Control.Monad.Reader
|
import Control.Monad.Reader
|
||||||
import Control.Monad.Trans.Except
|
import Control.Monad.Trans.Except
|
||||||
import Data.Aeson
|
import Data.Aeson.Compat
|
||||||
import Data.Aeson.Types
|
import Data.Aeson.Types
|
||||||
import Data.Attoparsec.ByteString
|
import Data.Attoparsec.ByteString
|
||||||
import Data.ByteString (ByteString)
|
import Data.ByteString (ByteString)
|
||||||
|
@ -139,7 +139,7 @@ userAPI = Proxy
|
||||||
-- which you can think of as an "abstract" web application,
|
-- which you can think of as an "abstract" web application,
|
||||||
-- not yet a webserver.
|
-- not yet a webserver.
|
||||||
app1 :: Application
|
app1 :: Application
|
||||||
app1 = serve userAPI EmptyConfig server1
|
app1 = serve userAPI server1
|
||||||
```
|
```
|
||||||
|
|
||||||
The `userAPI` bit is, alas, boilerplate (we need it to guide type inference).
|
The `userAPI` bit is, alas, boilerplate (we need it to guide type inference).
|
||||||
|
|
Loading…
Reference in a new issue