Questions tagged [ghci]

GHCi is the interactive environment (REPL) for the Glasgow Haskell Compiler.

GHCi is the interactive environment (REPL) for the Glasgow Haskell Compiler and GHCi is one of the main tools used to develope, test and debug Haskell.

Typically, ghci-tag is associated with questions

  • different use cases of ghci, how it works
  • ghci environment settings, tuning
  • customization of ghci environment, scripting
  • how ghci can be used with other tools
  • development of the ghci

There is Haskell-wiki that describes the basic use and customization of GHCi.

1069 questions
-2
votes
1 answer

parse error (possibly incorrect indentation or mismatched brackets) error

I've been trying to get my program to work but I always get the same error. enter image description here And this is my code type Nat0 = Int type Zeichenreihe = String type Teilzeichenreihe = String type…
-3
votes
2 answers

Haskell- War card Game

One of the rules that i'm trying to program is: When the two players play cards of equal rank, this triggers a “war”. Each player sets down three cards, and then flips one more card. Whoever wins between these last two flipped cards gets to…
-4
votes
1 answer

Syntax error: parse error on input ' -> ' )

I have a problem in this code: module Blueprint where data Colour = Blue | Green | Red deriving ( Eq, Show ) data Car = Car { wheels :: Integer , colour :: Colour } deriving ( Eq, Show ) data Property =…
Smokeking
  • 17
  • 1
  • 2
-4
votes
1 answer

Why am i getting a parse error and how can i solve this error in haskell?

I'm new to Haskell and while reading real-world Haskell I came across a problem: Q) Using the command framework from the earlier section “A Simple Command-Line Framework” on page 71, write a program that prints the first word of each line of its…
Rahat
  • 305
  • 1
  • 4
  • 10
1 2 3
71
72