Re: [Haskell-cafe] Compilation error in Chapter 5 of "Real World Haskell"

2011-08-18 Thread Thomas DuBuisson
This is a linking issue. It seems GHC 7 automatically feeds the linker SimpleJSON.o so when you explicitly provide it too then you get those conflicts. All you need to do is call: > ghc -o simple Main.hs Unless you're using GHC 6, then the original command is correct: > ghc -o simple Main.hs S

Re: [Haskell-cafe] Compilation error in Chapter 5 of "Real World Haskell"

2011-08-18 Thread Jason Dagit
On Wed, Aug 17, 2011 at 10:37 AM, Paul Reiners wrote: > I'm trying to do the following from Chapter 5 of "Real World Haskell": > > Our choice of naming for the source file and function is deliberate. To > create an executable, ghc expects a module named Main that contains a > function named main.

[Haskell-cafe] Compilation error in Chapter 5 of "Real World Haskell"

2011-08-17 Thread Paul Reiners
I'm trying to do the following from Chapter 5 of "Real World Haskell": Our choice of naming for the source file and function is deliberate. To create an executable, *ghc* expects a module named Main that contains a function named main. The main function is the one that will be called when we run t