Skip to content

Commit

Permalink
Add a BlackBox for 'undefined', 'patError', and 'irrefPatError'
Browse files Browse the repository at this point in the history
  • Loading branch information
christiaanb committed May 4, 2014
1 parent 9f9ca47 commit 8aba906
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 0 deletions.
11 changes: 11 additions & 0 deletions primitives/control.exception.base.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[ { "BlackBox" :
{ "name" : "Control.Exception.Base.patError"
, "templateE" : "~DEFAULTO"
}
}
, { "BlackBox" :
{ "name" : "Control.Exception.Base.irrefutPatError"
, "templateE" : "~DEFAULTO"
}
}
]
5 changes: 5 additions & 0 deletions primitives/ghc.err.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,9 @@
, "templateE" : "~DEFAULTO"
}
}
, { "BlackBox" :
{ "name" : "GHC.Err.undefined"
, "templateE" : "~DEFAULTO"
}
}
]
4 changes: 4 additions & 0 deletions tests/shouldwork/Basic/IrrefError.hs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module IrrefError where

topEntity :: Maybe Int -> Int
topEntity ~(Just x) = x
4 changes: 4 additions & 0 deletions tests/shouldwork/Basic/PatError.hs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module PatError where

topEntity :: Maybe Int -> Int
topEntity (Just x) = x

0 comments on commit 8aba906

Please sign in to comment.