Skip to content
Snippets Groups Projects
Commit fb4ea760 authored by Lennart Kolmodin's avatar Lennart Kolmodin
Browse files

Move end of {-# RULES #-} to be more forgiving for CPP

This fixes #105. Older GHC versions + clang ran into trouble, which this commit
fixes.
parent 2afc4525
No related branches found
Tags 0.8.2.1
No related merge requests found
name: binary
version: 0.8.2.0
version: 0.8.2.1
license: BSD3
license-file: LICENSE
author: Lennart Kolmodin <kolmodin@gmail.com>
......
binary
======
binary-0.8.2.1
--------------
- Fix compilation error when using older GHC versions and clang. clang barfs on some of its CPP input (#105).
binary-0.8.2.0
--------------
......
......@@ -398,9 +398,7 @@ readN !n f = ensureN n >> unsafeReadN n f
{-# RULES
"readN/readN merge" forall n m f g.
apG (readN n f) (readN m g) = readN (n+m) (\bs -> f bs $ g (B.unsafeDrop n bs))
#-}
apG (readN n f) (readN m g) = readN (n+m) (\bs -> f bs $ g (B.unsafeDrop n bs)) #-}
-- | Ensure that there are at least @n@ bytes available. If not, the
-- computation will escape with 'Partial'.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment