Skip to content

Commit 125f178

Browse files
committed
Disable fourmolu in a file with tricky CPP
1 parent 650d0f1 commit 125f178

File tree

1 file changed

+6
-0
lines changed
  • ouroboros-consensus/src/ouroboros-consensus/Ouroboros/Consensus/Storage/ImmutableDB/Chunks

1 file changed

+6
-0
lines changed

ouroboros-consensus/src/ouroboros-consensus/Ouroboros/Consensus/Storage/ImmutableDB/Chunks/Internal.hs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,7 @@ data ChunkAssertionFailure =
250250

251251
instance Exception ChunkAssertionFailure
252252

253+
{- FOURMOLU_DISABLE -}
253254
assertSameChunk :: HasCallStack => ChunkNo -> ChunkNo -> a -> a
254255
#if ENABLE_ASSERTIONS
255256
assertSameChunk a b
@@ -260,7 +261,9 @@ assertSameChunk _ _ = id
260261
#endif
261262
where
262263
_ = keepRedundantConstraint (Proxy @HasCallStack)
264+
{- FOURMOLU_ENABLE -}
263265

266+
{- FOURMOLU_DISABLE -}
264267
assertWithinBounds :: HasCallStack => Word64 -> ChunkSize -> a -> a
265268
#if ENABLE_ASSERTIONS
266269
assertWithinBounds ix sz
@@ -271,7 +274,9 @@ assertWithinBounds _ _ = id
271274
#endif
272275
where
273276
_ = keepRedundantConstraint (Proxy @HasCallStack)
277+
{- FOURMOLU_ENABLE -}
274278

279+
{- FOURMOLU_DISABLE -}
275280
assertChunkCanContainEBB :: HasCallStack => ChunkNo -> ChunkSize -> a -> a
276281
#if ENABLE_ASSERTIONS
277282
assertChunkCanContainEBB chunk size
@@ -282,3 +287,4 @@ assertChunkCanContainEBB _ _ = id
282287
#endif
283288
where
284289
_ = keepRedundantConstraint (Proxy @HasCallStack)
290+
{- FOURMOLU_ENABLE -}

0 commit comments

Comments
 (0)