Skip to content

Instantly share code, notes, and snippets.

@pedrofurla
Created January 14, 2014 06:59
Show Gist options
  • Select an option

  • Save pedrofurla/8414258 to your computer and use it in GitHub Desktop.

Select an option

Save pedrofurla/8414258 to your computer and use it in GitHub Desktop.
Is this impl so wrong?
instance Apply MaybeListZipper where
(IsZ l) <*> (IsZ r) = IsZ $ l <*> r
_ <*> _ = IsNotZ
Build FAILED
/Users/pedrofurla/dev/projects/nicta-fp-course/src/Course/ListZipper.hs: line 605, column 31:
Ambiguous occurrence `<*>'
It could refer to either `Course.ListZipper.<*>',
defined at src/Course/ListZipper.hs:605:9
or `Course.Apply.<*>',
imported from `Course.Apply' at src/Course/ListZipper.hs:10:1-19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment