Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Tobias Decking
GHC
Commits
b07b68d3
Commit
b07b68d3
authored
Aug 30, 1999
by
simonpj
Browse files
[project @ 1999-08-30 18:19:39 by simonpj]
Adjust library imports to get fromInt/toInt from PrelNum
parent
06bab813
Changes
5
Hide whitespace changes
Inline
Side-by-side
ghc/lib/exts/GlaExts.lhs
View file @
b07b68d3
...
...
@@ -50,6 +50,9 @@ module GlaExts
-- the representation of some basic types:
Int(..),Addr(..),Word(..),Float(..),Double(..),Integer(..),Char(..),
-- The non-standard fromInt and toInt methods
Num( fromInt ), Integral( toInt ),
-- Fusion
build, augment,
...
...
@@ -63,6 +66,7 @@ module GlaExts
import PrelGHC
import PrelBase
import PrelNum ( Num(..), Integral(..) ) -- To get fromInt/toInt
import PrelAddr ( Addr(..), Word(..) )
import PrelST
import IOExts
...
...
ghc/lib/exts/Int.lhs
View file @
b07b68d3
...
...
@@ -116,6 +116,7 @@ import PrelAddr ( Int64(..), Word64(..), Addr(..), Word(..) )
#endif
import Ix
import Bits
import PrelNum ( Num(..), Integral(..) ) -- To get fromInt/toInt
import Ratio ( (%) )
import Numeric ( readDec )
import Word ( Word32 )
...
...
ghc/lib/exts/Word.lhs
View file @
b07b68d3
...
...
@@ -125,6 +125,7 @@ import PrelIOBase
import PrelAddr
#endif
import Ix
import PrelNum ( Num(..), Integral(..) ) -- To get fromInt/toInt
import Bits
import Ratio
import Numeric (readDec, showInt)
...
...
ghc/lib/std/CPUTime.lhs
View file @
b07b68d3
...
...
@@ -25,6 +25,7 @@ import PrelIOBase
import PrelST
#endif
import IO ( ioError )
import PrelNum ( Num(..), Integral(..) ) -- To get fromInt/toInt
import Ratio
#ifdef __HUGS__
...
...
ghc/lib/std/Random.lhs
View file @
b07b68d3
...
...
@@ -32,6 +32,7 @@ import CPUTime (getCPUTime)
import PrelST
import PrelRead
import PrelShow
import PrelNum -- So we get fromInt, toInt
import PrelIOBase
import PrelNumExtra ( float2Double, double2Float )
import PrelBase
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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