hs-excelx 0.5.0.0 → 0.5.1.0
raw patch · 2 files changed
+7/−1 lines, 2 files
Files
- hs-excelx.cabal +1/−1
- src/Data/Excelx.hs +6/−0
hs-excelx.cabal view
@@ -2,7 +2,7 @@ -- documentation, see http://haskell.org/cabal/users-guide/ name: hs-excelx-version: 0.5.0.0+version: 0.5.1.0 synopsis: HS-Excelx provides basic read-only access to Excel 2007 and 2010 documents in XLSX format. -- description: license: BSD3
src/Data/Excelx.hs view
@@ -40,6 +40,12 @@ NumericCell _ d -> d _ -> 0.0 +instance FromCell Bool where+ fromCell c = case valueCell c of+ NumericCell _ d -> d > 0.0+ TextCell _ t -> T.length t > 0+ _ -> False+ instance FromCell Integer where fromCell c = floor (fromCell c :: Double)