forked from ku-fpg/hood
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert pull request ku-fpg#7, but keep test/test.hs. Fix GHC 7.4.2 build
- Loading branch information
1 parent
19efa9f
commit 5dfc2c2
Showing
2 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/usr/bin/env stack | ||
{-# LANGUAGE DeriveGeneric #-} | ||
-- stack --resolver lts-8.4 runghc --package hood | ||
-- Minimum program to reproduce https://github.com/ku-fpg/hood/issues/5 | ||
|
||
import Debug.Hood.Observe | ||
import GHC.Generics | ||
|
||
|
||
data Hoge = | ||
Hoge | ||
{ hoge1 :: Int | ||
, hoge2 :: String | ||
} deriving Generic | ||
|
||
instance Observable Hoge | ||
|
||
|
||
main :: IO () | ||
main = runO $ print $ f undefined | ||
|
||
|
||
f :: Hoge -> Bool | ||
f = observe "f" f' | ||
f' :: Hoge -> Bool | ||
f' h@(Hoge _h1 _h2) = error "ERROR" |