xlsx-0.0.1: Simple and incomplete Excel file parser/writer

Safe HaskellSafe-Infered

Codec.Xlsx

Synopsis

Documentation

data WorksheetFile Source

Constructors

WorksheetFile 

Fields

wfName :: Text
 
wfPath :: FilePath
 

Instances

data Styles Source

Constructors

Styles ByteString 

Instances

data ColumnsWidth Source

Column range (from cwMin to cwMax) width

Constructors

ColumnsWidth 

Fields

cwMin :: Int
 
cwMax :: Int
 
cwWidth :: Double
 

Instances

data Worksheet Source

Constructors

Worksheet 

Fields

wsName :: Text

worksheet name

wsMinX :: Int

minimum non-empty column number (1-based)

wsMaxX :: Int

maximum non-empty column number (1-based)

wsMinY :: Int

minimum non-empty row number (1-based)

wsMaxY :: Int

maximum non-empty row number (1-based)

wsColumns :: [ColumnsWidth]

column widths

wsRowHeights :: RowHeights

custom row height map

wsCells :: Map (Int, Int) CellData

data mapped by (column, row) pairs

Instances

data Cell Source

Constructors

Cell 

Fields

cellIx :: (Text, Int)
 
cellData :: CellData
 

Instances

data CellData Source

Constructors

CellData 

Instances

int2col :: Int -> TextSource

convert column number (starting from 1) to its textual form (e.g. 3 -> C)

col2int :: Text -> IntSource

reverse to int2col

foldRows :: (Int -> Int -> Maybe CellData -> a -> a) -> a -> Worksheet -> aSource

fold worksheet by row, then by column, so for region A1:B2 you'll get fold order like A1, A2, B1, B2