Skip to content

Commit

Permalink
Fixup for GHC 9.4
Browse files Browse the repository at this point in the history
added `TypeOperators` extensions
where `~` is used.

removed MonadFail constraint from `convert`
in the Data.Double.Conversion.Internal.TextBuilder.
  • Loading branch information
HaskellMouse committed Aug 20, 2022
1 parent 87ffe43 commit 04a1b42
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Data/Double/Conversion/Convertable.hs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{-# LANGUAGE DefaultSignatures, InstanceSigs, MagicHash, MultiParamTypeClasses,
TypeFamilies #-}
TypeFamilies, TypeOperators #-}

-- |
-- Module : Data.Double.Conversion.Convertable
Expand Down
2 changes: 1 addition & 1 deletion Data/Double/Conversion/Internal/ByteString.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeFamilies, TypeOperators #-}

-- |
-- Module : Data.Double.Conversion.ByteString
Expand Down
2 changes: 1 addition & 1 deletion Data/Double/Conversion/Internal/ByteStringBuilder.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeFamilies, TypeOperators #-}

-- |
-- Module : Data.Double.Conversion.ByteStringBuilder
Expand Down
2 changes: 1 addition & 1 deletion Data/Double/Conversion/Internal/Text.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{-# LANGUAGE CPP, MagicHash, Rank2Types, TypeFamilies, BangPatterns #-}
{-# LANGUAGE CPP, MagicHash, Rank2Types, TypeFamilies, BangPatterns, TypeOperators #-}

-- |
-- Module : Data.Double.Conversion.Text
Expand Down
4 changes: 2 additions & 2 deletions Data/Double/Conversion/Internal/TextBuilder.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{-# LANGUAGE CPP, MagicHash, Rank2Types, TypeFamilies #-}
{-# LANGUAGE CPP, MagicHash, Rank2Types, TypeFamilies, TypeOperators #-}
-- |
-- Module : Data.Double.Conversion.TextBuilder
-- Copyright : (c) 2011 MailRank, Inc.
Expand Down Expand Up @@ -45,7 +45,7 @@ convert func len act val = runST $ do
size <- unsafeIOToST $ act (realToFrac val) tempMArr
tempArr <- A.unsafeFreeze mTempArr
when (size == -1) .
fail $ "Data.Double.Conversion.Text." ++ func ++
error $ "Data.Double.Conversion.Text." ++ func ++
": conversion failed."
#if MIN_VERSION_text(2,0,0)
return $ writeN (fromIntegral size) $ \mArr _ -> A.copyI (fromIntegral size) mArr 0 tempArr 0
Expand Down

0 comments on commit 04a1b42

Please sign in to comment.