Skip to content

Commit

Permalink
Merge branch 'master' of github.com:NICTA/course
Browse files Browse the repository at this point in the history
  • Loading branch information
tonymorris committed Jul 21, 2015
2 parents 42158fc + 99f6dac commit 804aaf5
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
25 changes: 25 additions & 0 deletions README.markdown
Expand Up @@ -216,6 +216,31 @@ Answers for the exercises can be found here:

After these are completed, complete the exercises in the `projects` directory.

### Leksah

If you choose to use the [Leksah IDE for Haskell](http://leksah.org/), the
following tips are recommended:

* Clone the git repo use Package -> Add to add course.cabal.
* Click on the green tick on the toolbar to include `cabal test`
in each build and list the failures in the Errors pane.
* Choose Package -> Configure to make sure `--enable-tests`
is used (just building may cause cabal to configure without).
* Ctrl + B to build (Command + B on OS X).
* The test failures should show up in Panes -> Errors.
* Pane -> Log often has useful error messages.
* Ctrl + J (Command + J on OS X) selects the next item in
Errors pane and goes to it in the source (hold down Shift
to go to previous item).
* Ctrl + Enter on a line starting "-- >>>" will run the
selected expression in GHCi (Ctrl + Enter on OS X too).
The output goes to Panes -> Log and Panes -> Output.
* The last GHCi expression is reevaluated after each :reload
triggered by changes in the code.
* Uncheck Debug -> GHCi when you are done with GHCi and
Leksah will go back to running cabal build and cabal test
instead.

### References

* [The Haskell `error` function](http://hackage.haskell.org/packages/archive/base/latest/doc/html/Prelude.html#v:error)
Expand Down
2 changes: 2 additions & 0 deletions src/Course/Core.hs
Expand Up @@ -11,6 +11,7 @@ module Course.Core(
, Bounded(..)
, RealFrac(..)
, Num(..)
, Fractional(..)
, Bool(..)
, Either(..)
, Int
Expand Down Expand Up @@ -56,6 +57,7 @@ import Prelude(
, Bounded(..)
, RealFrac(..)
, Num(..)
, Fractional(..)
, Bool(..)
, Either(..)
, Char
Expand Down

0 comments on commit 804aaf5

Please sign in to comment.