HaskellWiki

Haskell | Wiki community | Recent changes
Random page | Special pages

 

Not logged in
Log in | Help

Questions and answers

Categories: Community | FAQ

Feel free to ask your questions here. Please sign your question using four tildes (~~~~). Questions and answers will be organised as they are added, and linked from here. We don't have much here yet, but the Haskell Newbie page on the old wiki has quite a few questions and answers you can look through.

1 Questions and answers

Q. What are the best place to ask beginner questions?
A. The haskell-cafe mailing list, or the #haskell irc channel.
Q. Symbols are valid in Haskell function names. What are the rules for which characters can be used?
A. Refer to the Language and library specification under "Identifiers and Operators". Variable identifiers start with a lowercase letter, constructor identifiers with an uppercase letter and both can contain underscores, single quotes, letters and digits. Operators are formed from one or more of '!#$%&*+./<=>?@\^|-~'. Constructors can be operator names, so long as they start with a ':' (e.g., :+ for Data.Complex). Lacking fixity declarations, the default fixity is left associative and most tightly binding (9).
Q. Are fixity declarations required for functions defined with symbol names?
A. No.
Q. GHC does a wide variety of optimisations. How can I view the optimisaitons that are performed?
A. Keep around the intermediate compiler outputs using --keep-tmp-files or -ddump-simpl.
Q. Can I use multiple CPUs with a Haskell program?
A. Yes, GHC 6.6 supports symmetric multicore processing. see GHC/Concurrency#Multiprocessor GHC
Q. I just wrote this really cool program! Who can I show it to?
Q. I just wrote this interesting program that someone else might find useful. Where can I put it?
A. Provided you are ok with the simple permissive license, you can put it here on the wiki. To do that, you must first create a login. Once that is done, start a page for your project. (People often add a link to their projects from their wiki home page.) Before starting the page, check out the guidelines for pages. If you need it, there is also help on editing wiki pages. Finally, don't forget to categorize your new page.
Q. I have a simple function; it behaves like map, but also threads state through the computation. Is there a standard library function that does the same thing?
A. Yes. mapAccumL. You could also use a state monad.

2 Uncategorised questions

Retrieved from "http://haskell.org/haskellwiki/Questions_and_answers"

This page has been accessed 5,808 times. This page was last modified 17:47, 21 December 2007. Recent content is available under a simple permissive license.