diff options
author | simonpj <unknown> | 2001-11-19 16:34:14 +0000 |
---|---|---|
committer | simonpj <unknown> | 2001-11-19 16:34:14 +0000 |
commit | 53ce311e219dcccf4d205f573c16e23a5c44265e (patch) | |
tree | 6f3882383393aaf5798af8d9223d6c56f514d868 /ghc/compiler/utils/StringBuffer.lhs | |
parent | 615a5546467c7864c765adf40706f23be3fa28b6 (diff) | |
download | haskell-53ce311e219dcccf4d205f573c16e23a5c44265e.tar.gz |
[project @ 2001-11-19 16:34:12 by simonpj]
Tidy up imports
Diffstat (limited to 'ghc/compiler/utils/StringBuffer.lhs')
-rw-r--r-- | ghc/compiler/utils/StringBuffer.lhs | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/ghc/compiler/utils/StringBuffer.lhs b/ghc/compiler/utils/StringBuffer.lhs index 1aedc7bc06..60686bbb90 100644 --- a/ghc/compiler/utils/StringBuffer.lhs +++ b/ghc/compiler/utils/StringBuffer.lhs @@ -69,31 +69,32 @@ module StringBuffer #include "HsVersions.h" -import GlaExts + #if __GLASGOW_HASKELL__ < 411 import PrelAddr ( Addr(..) ) +import Panic ( panic ) #else import Addr ( Addr(..) ) +import Ptr ( Ptr(..) ) #endif -import Foreign + +#if __GLASGOW_HASKELL__ >= 501 +import PrelIO ( hGetcBuffered ) +#else import Char ( chr ) -import Panic ( panic ) +#endif + +import GlaExts +import Foreign import IO ( openFile ) import IOExts ( slurpFile ) import PrelIOBase import PrelHandle import Addr -#if __GLASGOW_HASKELL__ >= 411 -import Ptr ( Ptr(..) ) -#endif import PrelPack ( unpackCStringBA ) -#if __GLASGOW_HASKELL__ >= 501 -import PrelIO ( hGetcBuffered ) -#endif - import Exception ( bracket ) import PrimPacked import FastString |