Skip to content

Commit

Permalink
Fix build with GHC 9.4
Browse files Browse the repository at this point in the history
  • Loading branch information
arrowd authored Feb 15, 2024
1 parent 21558d8 commit 00ef3fc
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,10 @@ blockRealPoint blk = RealPoint s h
where
HeaderFields { headerFieldSlot = s, headerFieldHash = h } = getHeaderFields blk

#if __GLASGOW_HASKELL__ >= 906
#if __GLASGOW_HASKELL__ >= 904
headerRealPoint :: (HasHeader blk, HasHeader (Header blk)) => Header blk -> RealPoint blk
#else
-- GHC 9.6 considiers these constraints insufficient.
-- GHC 9.4 considers these constraints insufficient.
headerRealPoint :: HasHeader (Header blk) => Header blk -> RealPoint blk
#endif
headerRealPoint hdr = RealPoint s h
Expand Down

0 comments on commit 00ef3fc

Please sign in to comment.