Skip to content

Commit

Permalink
Make the Show Op instance produce compilable output
Browse files Browse the repository at this point in the history
  • Loading branch information
jorisdral committed Nov 18, 2024
1 parent 1bd0a3f commit b7b35db
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions test/Test/Database/LSMTree/Normal/StateMachine/Op.hs
Original file line number Diff line number Diff line change
Expand Up @@ -139,16 +139,16 @@ instance Show (Op a b) where
_ -> go op
where
go :: Op x y -> String -> String
go OpId = showString "id"
go OpFst = showString "fst"
go OpSnd = showString "snd"
go OpLeft = showString "Left"
go OpRight = showString "Right"
go OpFromLeft = showString "FromLeft"
go OpFromRight = showString "FromRight"
go (OpComp g f) = go g . showString " . " . go f
go OpLookupResults = showString "mapMaybe getBlobRef"
go OpQueryResults = showString "mapMaybe getBlobRef"
go OpId = showString "OpId"
go OpFst = showString "OpFst"
go OpSnd = showString "OpSnd"
go OpLeft = showString "OpLeft"
go OpRight = showString "OpRight"
go OpFromLeft = showString "OpFromLeft"
go OpFromRight = showString "OpFromRight"
go (OpComp g f) = go g . showString " `OpComp` " . go f
go OpLookupResults = showString "OpLookupResults"
go OpQueryResults = showString "OpQueryResults"

{-------------------------------------------------------------------------------
'HasBlobRef' class
Expand Down

0 comments on commit b7b35db

Please sign in to comment.