Skip to content

Commit

Permalink
adjust to CellDouble being a pattern synonym
Browse files Browse the repository at this point in the history
  • Loading branch information
olafklinke authored May 17, 2024
1 parent dd03d32 commit 40c1bd3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Codec/Xlsx/Parser/Internal.hs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ import Data.Maybe
import Data.Text (Text)
import qualified Data.Text as T
import qualified Data.Text.Read as T
import Data.Scientific (Scientific)
import Data.Typeable (Typeable)
import GHC.Generics (Generic)
import Text.XML
Expand Down Expand Up @@ -68,6 +69,9 @@ instance FromAttrVal Integer where
instance FromAttrVal Double where
fromAttrVal = T.rational

instance FromAttrVal Scientific where
fromAttrVal = T.rational

instance FromAttrVal Bool where
fromAttrVal x | x == "1" || x == "true" = readSuccess True
| x == "0" || x == "false" = readSuccess False
Expand Down

0 comments on commit 40c1bd3

Please sign in to comment.