Skip to content

Commit

Permalink
Fix AltShow Maybe instance
Browse files Browse the repository at this point in the history
  • Loading branch information
hasufell committed Jan 24, 2024
1 parent 67a45a4 commit 0530486
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/filepath-equivalent-tests/TestEquiv.hs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ instance {-# OVERLAPPABLE #-} Show a => AltShow a where
instance {-# OVERLAPS #-} AltShow String where
altShow = id

instance {-# OVERLAPPABLE #-} AltShow a => AltShow (Maybe a) where
altShow Nothing = ""
altShow (Just a) = altShow a


newtype WindowsFilePaths = WindowsFilePaths { unWindowsFilePaths :: [WindowsFilePath] }
deriving (Show, Eq, Ord, Generic)
Expand Down

0 comments on commit 0530486

Please sign in to comment.