main main main main main
Frederik Eaton
frederik at a5.repetae.net
Sat May 12 17:13:36 EDT 2007
Hello,
I'm suddenly getting the following error when I compile a program:
bayesian-sets.hs:1:0:
The main function `main' is not defined in module `Main'
When checking the type of the main function `main'
I don't know what that means. Perhaps the error could be made more
human-friendly? Here is the output of 'ghc -v':
[1]$ ghc -v --make $A.hs -package vectro -lstdc++ -fallow-incoherent-instances
Glasgow Haskell Compiler, Version 6.6.20070420, for Haskell 98, compiled by GHC version 6.6.20070420
Using package config file: /home/frederik/arch/i386//lib/ghc-6.6.20070420/package.conf
Using package config file: /home/frederik/.ghc/i386-linux-6.6.20070420/package.conf
wired-in package base mapped to base-2.0
wired-in package rts mapped to rts-1.0
wired-in package haskell98 mapped to haskell98-1.0
wired-in package template-haskell mapped to template-haskell-2.0
Hsc static flags: -static
*** Chasing dependencies:
Chasing modules from: bayesian-sets.hs
Stable obj: []
Stable BCO: []
compile: input file bayesian-sets.hs
Created temporary directory: /tmp/ghc8785_0
*** Checking old interface for main:Main:
[1 of 1] Compiling Main ( bayesian-sets.hs, bayesian-sets.o )
*** Parser:
*** Renamer/typechecker:
bayesian-sets.hs:1:0:
The main function `main' is not defined in module `Main'
When checking the type of the main function `main'
*** Deleting temp files:
Deleting: /tmp/ghc8785_0/ghc8785_0.s
Warning: deleting non-existent /tmp/ghc8785_0/ghc8785_0.s
Upsweep partially successful.
*** Deleting temp files:
Deleting:
link(batch): upsweep (partially) failed OR
Main.main not exported; not linking.
*** Deleting temp files:
Deleting:
*** Deleting temp dirs:
Deleting: /tmp/ghc8785_0
Thanks,
Frederik
--
http://ofb.net/~frederik/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bayesian-sets.hs
Type: text/x-haskell
Size: 1762 bytes
Desc: not available
Url : http://www.haskell.org/pipermail/glasgow-haskell-bugs/attachments/20070512/eebda76c/bayesian-sets.bin
-------------- next part --------------
_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs at haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
More information about the Glasgow-haskell-bugs
mailing list