Skip to content

Commit

Permalink
writeBinaryFile is moved to tasty-golden
Browse files Browse the repository at this point in the history
  • Loading branch information
UnkindPartition committed Mar 2, 2014
1 parent 685c4a3 commit 6a833dc
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions tests/run.hs
Expand Up @@ -244,7 +244,4 @@ formatAnn name (Scoped info loc) =
name
(formatLoc loc)
(formatInfo info)

writeBinaryFile :: FilePath -> String -> IO ()
writeBinaryFile f txt = withBinaryFile f WriteMode (\hdl -> hPutStr hdl txt)
-- }}}

2 comments on commit 6a833dc

@trofi
Copy link

@trofi trofi commented on 6a833dc Mar 8, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess it should raise lowest required version of test suite.
I have slightly outdated one (tasty-golden-2.2.0.2) and got --enable-tests build failure:

Preprocessing test suite 'test' for haskell-names-0.3.2.7...
[1 of 1] Compiling Main             ( tests/run.hs, dist/build/test/test-tmp/Main.o )
tests/run.hs:80:11:
    Not in scope: `writeBinaryFile'
    Perhaps you meant `withBinaryFile' (imported from System.IO)

HTH

@UnkindPartition
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed, thank you.

Please sign in to comment.