haskell目录层次

daniel@daniel-mint /usr/lib/ghc/haskell2010-1.1.1.0 $ tree
.
├── Control
│   └── Monad.hi
├── Data
│   ├── Array.hi
│   ├── Bits.hi
│   ├── Char.hi
│   ├── Complex.hi
│   ├── Int.hi
│   ├── Ix.hi
│   ├── List.hi
│   ├── Maybe.hi
│   ├── Ratio.hi
│   └── Word.hi
├── Foreign
│   ├── C
│   │   ├── Error.hi
│   │   ├── String.hi
│   │   └── Types.hi
│   ├── C.hi
│   ├── ForeignPtr.hi
│   ├── Marshal
│   │   ├── Alloc.hi
│   │   ├── Array.hi
│   │   ├── Error.hi
│   │   └── Utils.hi
│   ├── Marshal.hi
│   ├── Ptr.hi
│   ├── StablePtr.hi
│   └── Storable.hi
├── Foreign.hi
├── HShaskell2010-1.1.1.0.o
├── libHShaskell2010-1.1.1.0.a
├── Numeric.hi
├── Prelude.hi
└── System
    ├── Environment.hi
    ├── Exit.hi
    ├── IO
    │   └── Error.hi
    └── IO.hi

  

这个层次,与import相关联。

daniel@daniel-mint /usr/lib/ghc/base-4.6.0.1 $ tree
.
├── Control
│   ├── Applicative.hi
│   ├── Arrow.hi
│   ├── Category.hi
│   ├── Concurrent
│   │   ├── Chan.hi
│   │   ├── MVar.hi
│   │   ├── QSem.hi
│   │   ├── QSemN.hi
│   │   └── SampleVar.hi
│   ├── Concurrent.hi
│   ├── Exception
│   │   └── Base.hi
│   ├── Exception.hi
│   ├── Monad
│   │   ├── Fix.hi
│   │   ├── Instances.hi
│   │   ├── ST
│   │   │   ├── Imp.hi
│   │   │   ├── Lazy
│   │   │   │   ├── Imp.hi
│   │   │   │   ├── Safe.hi
│   │   │   │   └── Unsafe.hi
│   │   │   ├── Lazy.hi
│   │   │   ├── Safe.hi
│   │   │   ├── Strict.hi
│   │   │   └── Unsafe.hi
│   │   ├── ST.hi
│   │   └── Zip.hi
│   └── Monad.hi
├── Data
│   ├── Bits.hi
│   ├── Bool.hi
│   ├── Char.hi
│   ├── Complex.hi
│   ├── Data.hi
│   ├── Dynamic.hi
│   ├── Either.hi
│   ├── Eq.hi
│   ├── Fixed.hi
│   ├── Foldable.hi
│   ├── Function.hi
│   ├── Functor.hi
│   ├── HashTable.hi
│   ├── Int.hi
│   ├── IORef.hi
│   ├── Ix.hi
│   ├── List.hi
│   ├── Maybe.hi
│   ├── Monoid.hi
│   ├── Ord.hi
│   ├── Ratio.hi
│   ├── STRef
│   │   ├── Lazy.hi
│   │   └── Strict.hi
│   ├── STRef.hi
│   ├── String.hi
│   ├── Traversable.hi
│   ├── Tuple.hi
│   ├── Typeable
│   │   └── Internal.hi
│   ├── Typeable.hi
│   ├── Unique.hi
│   ├── Version.hi
│   └── Word.hi
├── Debug
│   └── Trace.hi
├── Foreign
│   ├── C
│   │   ├── Error.hi
│   │   ├── String.hi
│   │   └── Types.hi
│   ├── C.hi
│   ├── Concurrent.hi
│   ├── ForeignPtr
│   │   ├── Imp.hi
│   │   ├── Safe.hi
│   │   └── Unsafe.hi
│   ├── ForeignPtr.hi
│   ├── Marshal
│   │   ├── Alloc.hi
│   │   ├── Array.hi
│   │   ├── Error.hi
│   │   ├── Pool.hi
│   │   ├── Safe.hi
│   │   ├── Unsafe.hi
│   │   └── Utils.hi
│   ├── Marshal.hi
│   ├── Ptr.hi
│   ├── Safe.hi
│   ├── StablePtr.hi
│   └── Storable.hi
├── Foreign.hi
├── GHC
│   ├── Arr.hi
│   ├── Base.hi
│   ├── Char.hi
│   ├── Conc
│   │   ├── IO.hi
│   │   ├── Signal.hi
│   │   └── Sync.hi
│   ├── Conc.hi
│   ├── ConsoleHandler.hi
│   ├── Constants.hi
│   ├── Desugar.hi
│   ├── Enum.hi
│   ├── Environment.hi
│   ├── Err.hi
│   ├── Event
│   │   ├── Array.hi
│   │   ├── Clock.hi
│   │   ├── Control.hi
│   │   ├── EPoll.hi
│   │   ├── Internal.hi
│   │   ├── IntMap.hi
│   │   ├── KQueue.hi
│   │   ├── Manager.hi
│   │   ├── Poll.hi
│   │   ├── PSQ.hi
│   │   ├── Thread.hi
│   │   └── Unique.hi
│   ├── Event.hi
│   ├── Exception.hi
│   ├── Exts.hi
│   ├── Fingerprint
│   │   └── Type.hi
│   ├── Fingerprint.hi
│   ├── Float
│   │   ├── ConversionUtils.hi
│   │   └── RealFracMethods.hi
│   ├── Float.hi
│   ├── Foreign.hi
│   ├── ForeignPtr.hi
│   ├── Generics.hi
│   ├── GHCi.hi
│   ├── Handle.hi
│   ├── Int.hi
│   ├── IO
│   │   ├── BufferedIO.hi
│   │   ├── Buffer.hi
│   │   ├── Device.hi
│   │   ├── Encoding
│   │   │   ├── CodePage.hi
│   │   │   ├── Failure.hi
│   │   │   ├── Iconv.hi
│   │   │   ├── Latin1.hi
│   │   │   ├── Types.hi
│   │   │   ├── UTF16.hi
│   │   │   ├── UTF32.hi
│   │   │   └── UTF8.hi
│   │   ├── Encoding.hi
│   │   ├── Exception.hi
│   │   ├── FD.hi
│   │   ├── Handle
│   │   │   ├── FD.hi
│   │   │   ├── Internals.hi
│   │   │   ├── Text.hi
│   │   │   └── Types.hi
│   │   ├── Handle.hi
│   │   └── IOMode.hi
│   ├── IOArray.hi
│   ├── IOBase.hi
│   ├── IO.hi
│   ├── IORef.hi
│   ├── IP.hi
│   ├── List.hi
│   ├── MVar.hi
│   ├── Num.hi
│   ├── Pack.hi
│   ├── PArr.hi
│   ├── Ptr.hi
│   ├── Read.hi
│   ├── Real.hi
│   ├── Show.hi
│   ├── Stable.hi
│   ├── Stack.hi
│   ├── Stats.hi
│   ├── ST.hi
│   ├── Storable.hi
│   ├── STRef.hi
│   ├── TopHandler.hi
│   ├── TypeLits.hi
│   ├── Unicode.hi
│   ├── Weak.hi
│   └── Word.hi
├── HSbase-4.6.0.1.o
├── include
│   ├── consUtils.h
│   ├── EventConfig.h
│   ├── HsBaseConfig.h
│   ├── HsBase.h
│   ├── Typeable.h
│   └── WCsubst.h
├── libHSbase-4.6.0.1.a
├── Numeric.hi
├── Prelude.hi
├── System
│   ├── Console
│   │   └── GetOpt.hi
│   ├── CPUTime.hi
│   ├── Environment
│   │   └── ExecutablePath.hi
│   ├── Environment.hi
│   ├── Exit.hi
│   ├── Info.hi
│   ├── IO
│   │   ├── Error.hi
│   │   └── Unsafe.hi
│   ├── IO.hi
│   ├── Mem
│   │   ├── StableName.hi
│   │   └── Weak.hi
│   ├── Mem.hi
│   ├── Posix
│   │   ├── Internals.hi
│   │   └── Types.hi
│   └── Timeout.hi
├── Text
│   ├── ParserCombinators
│   │   ├── ReadP.hi
│   │   └── ReadPrec.hi
│   ├── Printf.hi
│   ├── Read
│   │   └── Lex.hi
│   ├── Read.hi
│   ├── Show
│   │   └── Functions.hi
│   └── Show.hi
└── Unsafe
    └── Coerce.hi

  

Prelude Text.PrettyPrint Data.Char Data.Bits> import System.Environments

<no location info>:
    Could not find module `System.Environments'
    Perhaps you meant
      System.Environment (from base)
      System.Environment (needs flag -package haskell2010-1.1.1.0)
Prelude Text.PrettyPrint Data.Char Data.Bits> import System.Environment
Prelude Text.PrettyPrint Data.Char Data.Bits System.Environment> import System.Environment -package haskell2010-1.1.1.0

<interactive>:1:27: parse error on input `-'
Prelude Text.PrettyPrint Data.Char Data.Bits System.Environment> import System.Environment --package haskell2010-1.1.1.0

  

原文地址:https://www.cnblogs.com/long123king/p/3842765.html