You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to chalmer...@googlegroups.com
Hi, i have a problem compiling my code to create the html file needed. By issuing the command hastec --output-html main-is Calculator.hs nothing happens. I include main-is because i get the error message that main cannot be found. Thank you in advance
Leif Schelin
unread,
Dec 12, 2014, 12:49:02 AM12/12/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to chalmer...@googlegroups.com
If main cannot be found it seems like Haste is not installed correctly? Did you do haste-boot after the install?
orestis lamprousis
unread,
Dec 12, 2014, 7:08:37 AM12/12/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to chalmer...@googlegroups.com
Yes i do haste-boot but for every terminal session i need first to export cabal to my path by issuing the command export PATH=$PATH:~/.cabal/bin. Maybe i need to reinstall haste.
Simon Huber
unread,
Dec 12, 2014, 7:57:31 AM12/12/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to orestis lamprousis, chalmer...@googlegroups.com
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to FP
> No when i try to explicitly set main:: IO () it throws an exception that because of the eventhandler at the > end of the file it is main:: IO Bool instead of main::IO()
OK, so we found the problem. You can only compile something of type main::IO().
The event handler should not be at the end of the main do block.
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to FP
Problem resolved. Anyway this is what worked, in case you come across similar issues:
> It is working eventually. I had to include -main-is Calculator.main to the command line in order to locate the main function
Could it have been that main was not defined in the compiled module but imported?
--
You received this message because you are subscribed to the Google Groups "2014 Functional Programming TDA 452/ DIT142" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
chalmers-fp-1...@googlegroups.com.
To post to this group, send email to
chalmer...@googlegroups.com.