Skip to content
Snippets Groups Projects
Commit b07b68d3 authored by Simon Peyton Jones's avatar Simon Peyton Jones
Browse files

[project @ 1999-08-30 18:19:39 by simonpj]

Adjust library imports to get fromInt/toInt from PrelNum
parent 06bab813
No related merge requests found
...@@ -50,6 +50,9 @@ module GlaExts ...@@ -50,6 +50,9 @@ module GlaExts
-- the representation of some basic types: -- the representation of some basic types:
Int(..),Addr(..),Word(..),Float(..),Double(..),Integer(..),Char(..), Int(..),Addr(..),Word(..),Float(..),Double(..),Integer(..),Char(..),
-- The non-standard fromInt and toInt methods
Num( fromInt ), Integral( toInt ),
-- Fusion -- Fusion
build, augment, build, augment,
...@@ -63,6 +66,7 @@ module GlaExts ...@@ -63,6 +66,7 @@ module GlaExts
import PrelGHC import PrelGHC
import PrelBase import PrelBase
import PrelNum ( Num(..), Integral(..) ) -- To get fromInt/toInt
import PrelAddr ( Addr(..), Word(..) ) import PrelAddr ( Addr(..), Word(..) )
import PrelST import PrelST
import IOExts import IOExts
......
...@@ -116,6 +116,7 @@ import PrelAddr ( Int64(..), Word64(..), Addr(..), Word(..) ) ...@@ -116,6 +116,7 @@ import PrelAddr ( Int64(..), Word64(..), Addr(..), Word(..) )
#endif #endif
import Ix import Ix
import Bits import Bits
import PrelNum ( Num(..), Integral(..) ) -- To get fromInt/toInt
import Ratio ( (%) ) import Ratio ( (%) )
import Numeric ( readDec ) import Numeric ( readDec )
import Word ( Word32 ) import Word ( Word32 )
......
...@@ -125,6 +125,7 @@ import PrelIOBase ...@@ -125,6 +125,7 @@ import PrelIOBase
import PrelAddr import PrelAddr
#endif #endif
import Ix import Ix
import PrelNum ( Num(..), Integral(..) ) -- To get fromInt/toInt
import Bits import Bits
import Ratio import Ratio
import Numeric (readDec, showInt) import Numeric (readDec, showInt)
......
...@@ -25,6 +25,7 @@ import PrelIOBase ...@@ -25,6 +25,7 @@ import PrelIOBase
import PrelST import PrelST
#endif #endif
import IO ( ioError ) import IO ( ioError )
import PrelNum ( Num(..), Integral(..) ) -- To get fromInt/toInt
import Ratio import Ratio
#ifdef __HUGS__ #ifdef __HUGS__
......
...@@ -32,6 +32,7 @@ import CPUTime (getCPUTime) ...@@ -32,6 +32,7 @@ import CPUTime (getCPUTime)
import PrelST import PrelST
import PrelRead import PrelRead
import PrelShow import PrelShow
import PrelNum -- So we get fromInt, toInt
import PrelIOBase import PrelIOBase
import PrelNumExtra ( float2Double, double2Float ) import PrelNumExtra ( float2Double, double2Float )
import PrelBase import PrelBase
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment