Skip to content

Instantly share code, notes, and snippets.

@spencerjanssen
Last active January 13, 2016 22:52
Show Gist options
  • Save spencerjanssen/23cdb3dadf1e2e1451c5 to your computer and use it in GitHub Desktop.
Save spencerjanssen/23cdb3dadf1e2e1451c5 to your computer and use it in GitHub Desktop.
Where does a come from in the second case? Bug or intentional?
module Main where
import Prelude
import Control.Monad.Eff.Console
data W
= X
| Y
| Z
bad X a = a
bad Y _ = a+1
bad Z a = a
main = print (bad Y 999)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment