Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
Packages
Cabal
Commits
985b5c32
Commit
985b5c32
authored
May 09, 2008
by
Duncan Coutts
Browse files
Do not display version tags
parent
247de2e5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Distribution/Text.hs
View file @
985b5c32
...
...
@@ -35,9 +35,8 @@ instance Text Bool where
Parse
.
string
"false"
)
>>
return
False
]
instance
Text
Version
where
disp
(
Version
branch
tags
)
disp
(
Version
branch
_
tags
)
-- Do not display the tags
=
Disp
.
hcat
(
Disp
.
punctuate
(
Disp
.
char
'.'
)
(
map
Disp
.
int
branch
))
<>
Disp
.
hcat
(
map
(
\
tag
->
Disp
.
char
'-'
<>
Disp
.
text
tag
)
tags
)
parse
=
do
branch
<-
Parse
.
sepBy1
digits
(
Parse
.
char
'.'
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment