Groups
Sign in
Groups
haskell-exercises
Conversations
About
Send feedback
Help
haskell-exercises
Contact owners and managers
1–30 of 36
Group to work through and discuss the Haskell exercises from
Tony Morris'
Functional Programming course.
Exercises:
https://github.com/NICTA/
course
Answers
(please mark spoilers if you are posting about answers):
https://github.com/tonymorris/
course/
Mark all as read
Report group
0 selected
Michael Adlai Arnold
7/30/21
Question about OptionalT Applicative instance
Hi! In Course/StateT, we are asked to implement an Applicative instance for OptionalT. I initially
unread,
Question about OptionalT Applicative instance
Hi! In Course/StateT, we are asked to implement an Applicative instance for OptionalT. I initially
7/30/21
Moolshankar jangid
10/26/20
HAskell Help
Hi, Looking for some help related to Haskell programming, If someone is free to cheap in few hours to
unread,
HAskell Help
Hi, Looking for some help related to Haskell programming, If someone is free to cheap in few hours to
10/26/20
Chenyan Mao
,
Tony Morris
3
11/9/19
Stack overflow when two functions calling each other
Hi Tony, I found the problem. The second argument of `<*>` must be lazy. Once I change it to ``
unread,
Stack overflow when two functions calling each other
Hi Tony, I found the problem. The second argument of `<*>` must be lazy. Once I change it to ``
11/9/19
David Tchepak
,
Tony Morris
3
11/2/17
Re: [haskell-exercises] Functions
I'd avoid thinking about combining map *into* zip', and more combining map *with* zip'.
unread,
Re: [haskell-exercises] Functions
I'd avoid thinking about combining map *into* zip', and more combining map *with* zip'.
11/2/17
Tony Morris
10/31/17
Re: [haskell-exercises] Partial Functions in Haskell
Try this: f :: (Int -> Bool) fn | n `rem` 5 == 0 = False | otherwise = True On Tue, Oct 31, 2017
unread,
Re: [haskell-exercises] Partial Functions in Haskell
Try this: f :: (Int -> Bool) fn | n `rem` 5 == 0 = False | otherwise = True On Tue, Oct 31, 2017
10/31/17
En Carles
,
Tony Morris
2
8/12/16
order of exercises
https://github.com/NICTA/course/blob/master/README.markdown#progression On Fri, Aug 12, 2016 at 5:58
unread,
order of exercises
https://github.com/NICTA/course/blob/master/README.markdown#progression On Fri, Aug 12, 2016 at 5:58
8/12/16
Alexander Vorobiev
,
Tony Morris
3
3/4/16
Tests and/or examples for Compose.hs
Hi, Thanks for the reply! I came up with solutions and they typechecked (in all "possible"
unread,
Tests and/or examples for Compose.hs
Hi, Thanks for the reply! I came up with solutions and they typechecked (in all "possible"
3/4/16
Rob Dunne
,
David Tchepak
3
9/15/15
another nube question -- segfaults
Hi David, no, I deleted the course directory and started afresh so there is no "./dist"
unread,
another nube question -- segfaults
Hi David, no, I deleted the course directory and started afresh so there is no "./dist"
9/15/15
Rob Dunne
,
Tony Morris
3
9/9/15
a nube question
Thanks Tony, that fixed it! R On Wednesday, September 9, 2015 at 8:44:03 PM UTC+10, Tony Morris wrote
unread,
a nube question
Thanks Tony, that fixed it! R On Wednesday, September 9, 2015 at 8:44:03 PM UTC+10, Tony Morris wrote
9/9/15
Jimmy P
,
Tony Morris
3
9/2/15
Help Reading a Hole Error
The a0 could be anything as long as it isn't a or b. On 03/09/2015 9:24 AM, "Jimmy P"
unread,
Help Reading a Hole Error
The a0 could be anything as long as it isn't a or b. On 03/09/2015 9:24 AM, "Jimmy P"
9/2/15
Jimmy P
,
Charles O'Farrell
3
9/1/15
Using GHCI to test Props
Gah! That was it! Thank you Charles :) On Wed, 2 Sep 2015 at 08:56 Charles O'Farrell <charleso
unread,
Using GHCI to test Props
Gah! That was it! Thank you Charles :) On Wed, 2 Sep 2015 at 08:56 Charles O'Farrell <charleso
9/1/15
cd
4/20/15
Issue when running test: Failure in src/Course/List.hs:28: expression `instance Arbitrary a => Arbi
Running doctests without any changes to Course.List with ghc 7.10.1 on OSX, I get: ### Failure in src
unread,
Issue when running test: Failure in src/Course/List.hs:28: expression `instance Arbitrary a => Arbi
Running doctests without any changes to Course.List with ghc 7.10.1 on OSX, I get: ### Failure in src
4/20/15
Christopher Mazey
,
Tony Morris
3
3/3/15
ListZipper.findLeft
Thanks, Tony. And thank you very much for the course. It is very good--I am learning and enjoying it
unread,
ListZipper.findLeft
Thanks, Tony. And thank you very much for the course. It is very good--I am learning and enjoying it
3/3/15
Ramakrishnan Muthukrishnan
,
Tony Morris
3
1/1/15
State exercise
Sleep always works. Where was your bug? On 02/01/15 12:46, Ramakrishnan Muthukrishnan wrote: >
unread,
State exercise
Sleep always works. Where was your bug? On 02/01/15 12:46, Ramakrishnan Muthukrishnan wrote: >
1/1/15
Michael Fox
, …
Tony Morris
4
11/11/14
TickTackToe -- compile-time type errors
Yep, on the right track. So, to continue: 1. make sure all of your detailed requirements are met in
unread,
TickTackToe -- compile-time type errors
Yep, on the right track. So, to continue: 1. make sure all of your detailed requirements are met in
11/11/14
John Owens
,
Tony Morris
3
10/15/14
noting places where I have difficulty in first two modules
I appreciate the thoughtful reply, and will ponder it when I return to these exercises. I fully
unread,
noting places where I have difficulty in first two modules
I appreciate the thoughtful reply, and will ponder it when I return to these exercises. I fully
10/15/14
Harold Carr
,
Tony Morris
3
11/30/13
how long does this course typically take, etc?
On Saturday, 30 November 2013 20:37:05 UTC-8, Tony Morris wrote: It is given by NICTA and has so far
unread,
how long does this course typically take, etc?
On Saturday, 30 November 2013 20:37:05 UTC-8, Tony Morris wrote: It is given by NICTA and has so far
11/30/13
Tony Morris
11/15/13
NICTA/course
Hello, There have been some major changes to https://github.com/NICTA/course/ Hopefully, I can start
unread,
NICTA/course
Hello, There have been some major changes to https://github.com/NICTA/course/ Hopefully, I can start
11/15/13
Tony Morris
9/26/13
github repository
Hello everyone, You might have noticed some major changes to the repository recently. Sorry if it has
unread,
github repository
Hello everyone, You might have noticed some major changes to the repository recently. Sorry if it has
9/26/13
Riaan Rottier
,
Tony Morris
3
8/13/13
L08 EditDistance
Thanks - I'll google that and hopefully be able to figure out where to go from there. R On
unread,
L08 EditDistance
Thanks - I'll google that and hopefully be able to figure out where to go from there. R On
8/13/13
Riaan Rottier
,
Tony Morris
5
8/1/13
[L06 MoreParser] Questions - SPOILER ALERT
Yes, mapM is indeed fmap then sequence. Also, sequence is mapM id. In other words, mapM and sequence
unread,
[L06 MoreParser] Questions - SPOILER ALERT
Yes, mapM is indeed fmap then sequence. Also, sequence is mapM id. In other words, mapM and sequence
8/1/13
Tony Morris
, …
Tony Morris
5
7/30/13
By the way
Yeah bit of sneaky modification that I thought nobody would notice. On 31/07/2013 8:58 AM, "
unread,
By the way
Yeah bit of sneaky modification that I thought nobody would notice. On 31/07/2013 8:58 AM, "
7/30/13
Riaan Rottier
,
Tony Morris
3
7/28/13
L04 ListZipper - Extend
Thanks, that helps a lot. R On Sunday, July 28, 2013 1:40:17 PM UTC+10, Tony Morris wrote: On 28/07/
unread,
L04 ListZipper - Extend
Thanks, that helps a lot. R On Sunday, July 28, 2013 1:40:17 PM UTC+10, Tony Morris wrote: On 28/07/
7/28/13
Riaan Rottier
, …
Tony Morris
9
7/24/13
L04 ListZipper - Minimal traversing
I think that makes sense. On 25/07/13 13:47, Riaan Rottier wrote: > Still confused. Let say: >
unread,
L04 ListZipper - Minimal traversing
I think that makes sense. On 25/07/13 13:47, Riaan Rottier wrote: > Still confused. Let say: >
7/24/13
Riaan Rottier
,
Charles O'Farrell
3
6/11/13
[L03 StateT] Questions - SPOILER ALERT
Perfect sense. Thanks Riaan
unread,
[L03 StateT] Questions - SPOILER ALERT
Perfect sense. Thanks Riaan
6/11/13
David Tchepak
,
Liam McLennan
2
5/28/13
Setting up exercises for haskell-platform 2013.2
The advice I got on irc was to favour virthualenv over cabal-dev for reasons that were not clear. I
unread,
Setting up exercises for haskell-platform 2013.2
The advice I got on irc was to favour virthualenv over cabal-dev for reasons that were not clear. I
5/28/13
David Tchepak
,
Riaan Rottier
3
3/7/13
[L03 State] State monad
Earlier we implemented fmaap as: fmaap f = bind (\a -> reeturn (fa)) This is in the same shape as
unread,
[L03 State] State monad
Earlier we implemented fmaap as: fmaap f = bind (\a -> reeturn (fa)) This is in the same shape as
3/7/13
David Tchepak
,
Tony Morris
3
2/22/13
[L03 State] Refining firstRepeat? (SPOILERS)
That's awesome. Thanks! Try this. State . liftA2 (&&&) S.member S.insert -- Tony
unread,
[L03 State] Refining firstRepeat? (SPOILERS)
That's awesome. Thanks! Try this. State . liftA2 (&&&) S.member S.insert -- Tony
2/22/13
Riaan Rottier
,
Tony Morris
5
2/2/13
[L03 Moonads] [SPOILERS] Answers and questions
To be clear, seqf is a specialisation of seequence, but that specialisation permits an easier
unread,
[L03 Moonads] [SPOILERS] Answers and questions
To be clear, seqf is a specialisation of seequence, but that specialisation permits an easier
2/2/13
David Tchepak
1/31/13
[L03 Moonads] Implementing monad instances and library functions
Next exercise is Moonads.hs: https://github.com/tonymorris/course/blob/master/src/L03/Moonad.hs Tests
unread,
[L03 Moonads] Implementing monad instances and library functions
Next exercise is Moonads.hs: https://github.com/tonymorris/course/blob/master/src/L03/Moonad.hs Tests
1/31/13