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
Open

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

freizl opened this issue Apr 30, 2018 · 7 comments

Comments

@freizl
Copy link
Member

@freizl freizl commented Apr 30, 2018

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

@freizl
Copy link
Member Author

@freizl freizl commented Apr 30, 2018

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

Loading

@freizl
Copy link
Member Author

@freizl freizl commented Apr 30, 2018

我记得是 cabal install random?

Loading

@freizl
Copy link
Member Author

@freizl freizl commented Apr 30, 2018

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

Loading

@freizl
Copy link
Member Author

@freizl freizl commented Apr 30, 2018

Loading

@freizl
Copy link
Member Author

@freizl freizl commented Apr 30, 2018

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

Loading

@freizl
Copy link
Member Author

@freizl freizl commented Apr 30, 2018

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

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

Loading

@freizl
Copy link
Member Author

@freizl freizl commented Apr 30, 2018

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

Loading

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant