projects
/
ghc-base.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
49283eb
)
[project @ 2005-01-31 13:45:50 by malcolm]
author
malcolm
<unknown>
Mon, 31 Jan 2005 13:45:50 +0000
(13:45 +0000)
committer
malcolm
<unknown>
Mon, 31 Jan 2005 13:45:50 +0000
(13:45 +0000)
Work around type-system bug (cxt in lhs pattern) in nhc98.
System/Info.hs
patch
|
blob
|
history
diff --git
a/System/Info.hs
b/System/Info.hs
index
68a4a1f
..
c27ef9d
100644
(file)
--- a/
System/Info.hs
+++ b/
System/Info.hs
@@
-61,6
+61,8
@@
compilerVersion = Version {versionBranch=[maj,min], versionTags=[]}
#ifdef __NHC__
compilerVersion :: Version
compilerVersion = Version {versionBranch=[maj,min], versionTags=[]}
- where (maj,min) = __NHC__ `divMod` 100
+ where version = __NHC__ `divMod` 100
+ maj = fst version
+ min = snd version
#endif