hs-excelx 0.5.1.0 → 0.5.2.0
raw patch · 2 files changed
+6/−8 lines, 2 files
Files
- hs-excelx.cabal +1/−1
- src/Data/Excelx.hs +5/−7
hs-excelx.cabal view
@@ -2,7 +2,7 @@ -- documentation, see http://haskell.org/cabal/users-guide/ name: hs-excelx-version: 0.5.1.0+version: 0.5.2.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
@@ -1,8 +1,6 @@ {-# LANGUAGE QuasiQuotes, OverloadedStrings, FlexibleContexts, FlexibleInstances #-} -module Data.Excelx(openExcelx, toExcelx,- sheet, cell, row, rows, column,- fromCell) where+module Data.Excelx where import Data.Maybe import Data.Monoid@@ -28,10 +26,6 @@ | BlankCell Position | NoCell Position deriving Show -valueCell :: Cell -> Cell-valueCell (FormulaCell _ _ valuecell) = valuecell-valueCell valuecell = valuecell- class FromCell a where fromCell :: Cell -> a @@ -80,6 +74,10 @@ fromCell c = case valueCell c of NoCell pos -> Left pos _ -> Right $ fromCell c++valueCell :: Cell -> Cell+valueCell (FormulaCell _ _ valuecell) = valuecell+valueCell valuecell = valuecell catCells :: [Cell] -> [Cell] catCells cells = filter noCell cells