haskell目录层次

朱雀 2021-12-17 07:11 332阅读 0赞
  1. daniel@daniel-mint /usr/lib/ghc/haskell2010-1.1.1.0 $ tree
  2. .
  3. ├── Control
  4. └── Monad.hi
  5. ├── Data
  6. ├── Array.hi
  7. ├── Bits.hi
  8. ├── Char.hi
  9. ├── Complex.hi
  10. ├── Int.hi
  11. ├── Ix.hi
  12. ├── List.hi
  13. ├── Maybe.hi
  14. ├── Ratio.hi
  15. └── Word.hi
  16. ├── Foreign
  17. ├── C
  18. ├── Error.hi
  19. ├── String.hi
  20. └── Types.hi
  21. ├── C.hi
  22. ├── ForeignPtr.hi
  23. ├── Marshal
  24. ├── Alloc.hi
  25. ├── Array.hi
  26. ├── Error.hi
  27. └── Utils.hi
  28. ├── Marshal.hi
  29. ├── Ptr.hi
  30. ├── StablePtr.hi
  31. └── Storable.hi
  32. ├── Foreign.hi
  33. ├── HShaskell2010-1.1.1.0.o
  34. ├── libHShaskell2010-1.1.1.0.a
  35. ├── Numeric.hi
  36. ├── Prelude.hi
  37. └── System
  38. ├── Environment.hi
  39. ├── Exit.hi
  40. ├── IO
  41. └── Error.hi
  42. └── IO.hi

  

这个层次,与import相关联。

  1. daniel@daniel-mint /usr/lib/ghc/base-4.6.0.1 $ tree
  2. .
  3. ├── Control
  4. ├── Applicative.hi
  5. ├── Arrow.hi
  6. ├── Category.hi
  7. ├── Concurrent
  8. ├── Chan.hi
  9. ├── MVar.hi
  10. ├── QSem.hi
  11. ├── QSemN.hi
  12. └── SampleVar.hi
  13. ├── Concurrent.hi
  14. ├── Exception
  15. └── Base.hi
  16. ├── Exception.hi
  17. ├── Monad
  18. ├── Fix.hi
  19. ├── Instances.hi
  20. ├── ST
  21. ├── Imp.hi
  22. ├── Lazy
  23. ├── Imp.hi
  24. ├── Safe.hi
  25. └── Unsafe.hi
  26. ├── Lazy.hi
  27. ├── Safe.hi
  28. ├── Strict.hi
  29. └── Unsafe.hi
  30. ├── ST.hi
  31. └── Zip.hi
  32. └── Monad.hi
  33. ├── Data
  34. ├── Bits.hi
  35. ├── Bool.hi
  36. ├── Char.hi
  37. ├── Complex.hi
  38. ├── Data.hi
  39. ├── Dynamic.hi
  40. ├── Either.hi
  41. ├── Eq.hi
  42. ├── Fixed.hi
  43. ├── Foldable.hi
  44. ├── Function.hi
  45. ├── Functor.hi
  46. ├── HashTable.hi
  47. ├── Int.hi
  48. ├── IORef.hi
  49. ├── Ix.hi
  50. ├── List.hi
  51. ├── Maybe.hi
  52. ├── Monoid.hi
  53. ├── Ord.hi
  54. ├── Ratio.hi
  55. ├── STRef
  56. ├── Lazy.hi
  57. └── Strict.hi
  58. ├── STRef.hi
  59. ├── String.hi
  60. ├── Traversable.hi
  61. ├── Tuple.hi
  62. ├── Typeable
  63. └── Internal.hi
  64. ├── Typeable.hi
  65. ├── Unique.hi
  66. ├── Version.hi
  67. └── Word.hi
  68. ├── Debug
  69. └── Trace.hi
  70. ├── Foreign
  71. ├── C
  72. ├── Error.hi
  73. ├── String.hi
  74. └── Types.hi
  75. ├── C.hi
  76. ├── Concurrent.hi
  77. ├── ForeignPtr
  78. ├── Imp.hi
  79. ├── Safe.hi
  80. └── Unsafe.hi
  81. ├── ForeignPtr.hi
  82. ├── Marshal
  83. ├── Alloc.hi
  84. ├── Array.hi
  85. ├── Error.hi
  86. ├── Pool.hi
  87. ├── Safe.hi
  88. ├── Unsafe.hi
  89. └── Utils.hi
  90. ├── Marshal.hi
  91. ├── Ptr.hi
  92. ├── Safe.hi
  93. ├── StablePtr.hi
  94. └── Storable.hi
  95. ├── Foreign.hi
  96. ├── GHC
  97. ├── Arr.hi
  98. ├── Base.hi
  99. ├── Char.hi
  100. ├── Conc
  101. ├── IO.hi
  102. ├── Signal.hi
  103. └── Sync.hi
  104. ├── Conc.hi
  105. ├── ConsoleHandler.hi
  106. ├── Constants.hi
  107. ├── Desugar.hi
  108. ├── Enum.hi
  109. ├── Environment.hi
  110. ├── Err.hi
  111. ├── Event
  112. ├── Array.hi
  113. ├── Clock.hi
  114. ├── Control.hi
  115. ├── EPoll.hi
  116. ├── Internal.hi
  117. ├── IntMap.hi
  118. ├── KQueue.hi
  119. ├── Manager.hi
  120. ├── Poll.hi
  121. ├── PSQ.hi
  122. ├── Thread.hi
  123. └── Unique.hi
  124. ├── Event.hi
  125. ├── Exception.hi
  126. ├── Exts.hi
  127. ├── Fingerprint
  128. └── Type.hi
  129. ├── Fingerprint.hi
  130. ├── Float
  131. ├── ConversionUtils.hi
  132. └── RealFracMethods.hi
  133. ├── Float.hi
  134. ├── Foreign.hi
  135. ├── ForeignPtr.hi
  136. ├── Generics.hi
  137. ├── GHCi.hi
  138. ├── Handle.hi
  139. ├── Int.hi
  140. ├── IO
  141. ├── BufferedIO.hi
  142. ├── Buffer.hi
  143. ├── Device.hi
  144. ├── Encoding
  145. ├── CodePage.hi
  146. ├── Failure.hi
  147. ├── Iconv.hi
  148. ├── Latin1.hi
  149. ├── Types.hi
  150. ├── UTF16.hi
  151. ├── UTF32.hi
  152. └── UTF8.hi
  153. ├── Encoding.hi
  154. ├── Exception.hi
  155. ├── FD.hi
  156. ├── Handle
  157. ├── FD.hi
  158. ├── Internals.hi
  159. ├── Text.hi
  160. └── Types.hi
  161. ├── Handle.hi
  162. └── IOMode.hi
  163. ├── IOArray.hi
  164. ├── IOBase.hi
  165. ├── IO.hi
  166. ├── IORef.hi
  167. ├── IP.hi
  168. ├── List.hi
  169. ├── MVar.hi
  170. ├── Num.hi
  171. ├── Pack.hi
  172. ├── PArr.hi
  173. ├── Ptr.hi
  174. ├── Read.hi
  175. ├── Real.hi
  176. ├── Show.hi
  177. ├── Stable.hi
  178. ├── Stack.hi
  179. ├── Stats.hi
  180. ├── ST.hi
  181. ├── Storable.hi
  182. ├── STRef.hi
  183. ├── TopHandler.hi
  184. ├── TypeLits.hi
  185. ├── Unicode.hi
  186. ├── Weak.hi
  187. └── Word.hi
  188. ├── HSbase-4.6.0.1.o
  189. ├── include
  190. ├── consUtils.h
  191. ├── EventConfig.h
  192. ├── HsBaseConfig.h
  193. ├── HsBase.h
  194. ├── Typeable.h
  195. └── WCsubst.h
  196. ├── libHSbase-4.6.0.1.a
  197. ├── Numeric.hi
  198. ├── Prelude.hi
  199. ├── System
  200. ├── Console
  201. └── GetOpt.hi
  202. ├── CPUTime.hi
  203. ├── Environment
  204. └── ExecutablePath.hi
  205. ├── Environment.hi
  206. ├── Exit.hi
  207. ├── Info.hi
  208. ├── IO
  209. ├── Error.hi
  210. └── Unsafe.hi
  211. ├── IO.hi
  212. ├── Mem
  213. ├── StableName.hi
  214. └── Weak.hi
  215. ├── Mem.hi
  216. ├── Posix
  217. ├── Internals.hi
  218. └── Types.hi
  219. └── Timeout.hi
  220. ├── Text
  221. ├── ParserCombinators
  222. ├── ReadP.hi
  223. └── ReadPrec.hi
  224. ├── Printf.hi
  225. ├── Read
  226. └── Lex.hi
  227. ├── Read.hi
  228. ├── Show
  229. └── Functions.hi
  230. └── Show.hi
  231. └── Unsafe
  232. └── Coerce.hi

  

  1. Prelude Text.PrettyPrint Data.Char Data.Bits> import System.Environments
  2. <no location info>:
  3. Could not find module `System.Environments'
  4. Perhaps you meant
  5. System.Environment (from base)
  6. System.Environment (needs flag -package haskell2010-1.1.1.0)
  7. Prelude Text.PrettyPrint Data.Char Data.Bits> import System.Environment
  8. Prelude Text.PrettyPrint Data.Char Data.Bits System.Environment> import System.Environment -package haskell2010-1.1.1.0
  9. <interactive>:1:27: parse error on input `-'
  10. 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

发表评论

表情:
评论列表 (有 0 条评论,332人围观)

还没有评论,来说两句吧...

相关阅读