Skip to content

Commit

Permalink
3.12.1 変数に対する正しくないパターンマッチ
Browse files Browse the repository at this point in the history
- リテラル値でパターンマッチするよう修正
  • Loading branch information
ukstudio committed Sep 30, 2011
1 parent b00089e commit 088f83e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ch03/BogusPattern.hs
Expand Up @@ -10,3 +10,7 @@ whichFruit f = case f of

equational apple = Apple
equational orange = Orange

betterFruit f = case f of
"apple" -> Apple
"orange" -> Orange

0 comments on commit 088f83e

Please sign in to comment.