ghci
Error loading function from file in GHCi
I\'m completely new to Haskell. To grasp the basics I\'ve started working through \'Learn you a Haskell for Great Good\'. I\'m stuck on the simple matter of loading a function from a file.[详细]
2023-04-12 21:43 分类:问答A Haskell interpreter /w type definitions
Is开发者_运维知识库 there a Haskell interpreter that accepts type definitions or preferably all kinds of statements?[详细]
2023-04-12 17:28 分类:问答A ghci session without Prelude
This question arose on #haskell irc chat: How can I start ghci without importing prelude? The possible answer seemed obvious:[详细]
2023-04-12 14:04 分类:问答Using GHCi to load a module without access to its source code
I create a simple module, TestModule.hs, which contains a single exported top-level definition testval = 2. I compile it, creating TestModule.o and TestModule.hi. I delete TestModule.hs. I the开发者_如[详细]
2023-04-05 08:28 分类:问答How to use "cabal-dev ghci" with a non-sandbox, non-global (user?) package?
I\'m trying out cabal-dev for a project I\'m working on; the project is a library, and cabal-dev does a great job of building a sandboxed version of it - but I\'m having trouble with part of my workfl[详细]
2023-04-05 06:52 分类:问答How can I persist the environment between GHCi reloads?
Basically when I :load name.hs the variables and bindings are gone. Is there some option to tell g开发者_JS百科hci keep it all?To load a new module, you can use[详细]
2023-04-04 20:12 分类:问答Why does this Haskell complain about ambigous types when its extended?
The following returns True (because 2147483647 is a prime). length [f | f <- [2..(floor(sqrt 2147483647))], 2147483647 `mod` f == 0 ] == 0[详细]
2023-04-04 03:11 分类:问答Monads at the prompt?
Is it possible to interact with arbitrary Monad instances incrementally at the GHCi 开发者_JAVA百科prompt?[详细]
2023-03-27 01:42 分类:问答What is the -i option while compiling hs file using GHC and how to do same in GHCi?
Ok, I\'ve been using the -i compile option to specify the folder to some haskell source when I compile using GHC.[详细]
2023-03-15 16:04 分类:问答Haskell: Why is the type inferred by GHC for main method not quite complete?
For example, take the code written by Don Stewart in reply to some Stack Overflow question: import Control.Monad[详细]
2023-03-14 01:18 分类:问答