haskell-servant / haskell-servant/servant
Error on `cabal new-repl tutorial`
- Dominant language
- Haskell
- Stars
- 2k
- Forks
- 427
- Avg merge
- 2d 23h
- Merged PRs (30d)
- 5
Description
I'm following https://haskell-servant.readthedocs.io/en/stable/tutorial/index.html, and getting this message when running `cabal new-repl tutorial`. The error suggests editing the files, but I'm reluctant to do that. I assume there's something else wrong.
```
$ cabal new-repl tutorial
Build profile: -w ghc-8.8.3 -O0
In order, the following will be built (use -v for more details):
- tutorial-0.10 (lib) (ephemeral targets)
Preprocessing library for tutorial-0.10..
GHCi, version 8.8.3: https://www.haskell.org/ghc/ :? for help
Loaded GHCi configuration from ...servant/doc/tutorial/.ghci
[1 of 6] Compiling ApiType ( ApiType.lhs, interpreted )
[2 of 6] Compiling Authentication ( Authentication.lhs, interpreted )
Authentication.lhs:50:1: error: [-Wunused-imports, -Werror=unused-imports]
The import of ‘Data.Monoid’ is redundant
except perhaps to import instances from ‘Data.Monoid’
To import instances alone, use: import Data.Monoid()
|
50 | import Data.Monoid ((<>))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Failed, one module loaded.
*ApiType>
```
cabal is version 3.2.0.0
Contributor guide
Assessment
This issue has not been assessed yet.