haskell / haskell/cabal

Missing `instance Pretty CabalSpecVersion`

Open
#9,066 1 comment 0 reactions 0 assignees View on GitHub
re: API
Dominant language
Haskell
Stars
1.7k
Forks
750
Avg merge
4d 3h
Merged PRs (30d)
28

Description

`Distribution.Pretty` declares a class `Pretty` which has instances for tons of types.
I think the instance for `CabalSpecVersion` has been ~~forgotten~~ when this type was introduced in 3.4.

_deliberately omitted?_

Found this comment: https://github.com/haskell/cabal/blob/1723d220e8de79a0d99d3127784167077fba77b4/Cabal-syntax/src/Distribution/FieldGrammar/Newtypes.hs#L293-L297

There is an `instance Pretty SpecVersion`.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.