Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

随机数在哪个模块 by xyyiii #123

Open
freizl opened this Issue Apr 30, 2018 · 7 comments

Comments

Projects
None yet
1 participant
@freizl
Copy link
Member

freizl commented Apr 30, 2018

我import System.Random出现Could not find module ‘System.Random’
不知道是我的ghci问题还是根本就没有这个模块?

@freizl freizl added the migration label Apr 30, 2018

@freizl

This comment has been minimized.

Copy link
Member Author

freizl commented Apr 30, 2018

还有一个问题。我在看excepction中讲catch函数在System.IO.Error中
可是,我import了却提示没有catch。。。。
问各位前辈。如果我想查询某个模块中有那些函数怎么查询?

@freizl

This comment has been minimized.

Copy link
Member Author

freizl commented Apr 30, 2018

我记得是 cabal install random?

@freizl

This comment has been minimized.

Copy link
Member Author

freizl commented Apr 30, 2018

  • cabal install random
  • :browse System.Random in GHCi
@freizl

This comment has been minimized.

@freizl

This comment has been minimized.

Copy link
Member Author

freizl commented Apr 30, 2018

....谢谢各位了.你们看的什么书啊.我看的是在线 Haskelll趣味指南.
完全不知道还有cabal这东西...书上连模块都能讲错= =...郁闷了一天

@freizl

This comment has been minimized.

Copy link
Member Author

freizl commented Apr 30, 2018

这个还不过 http://dev.stephendiehl.com/hask/

中文翻译才刚开始 http://www.haskellcn.org/hask/

@freizl

This comment has been minimized.

Copy link
Member Author

freizl commented Apr 30, 2018

因为书写完后是固定的,模块和语言是在变化的嘛.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.