Re: [Haskell-cafe] representing spreadsheets

2011-05-27 Thread Stephen Tetley
Hi Eric A spreadsheet is an indexed / tabular structure which doesn't map well to Haskell's built-in way of defining data - algebraic types - which are trees via sums and products. Wolfram Kahl has a paper on modelling tables in Haskell Compositional Syntax and Semantics of Tables which might be

Re: [Haskell-cafe] representing spreadsheets

2011-05-27 Thread Tillmann Rendel
Hi, Eric Rasmussen wrote: The spreadsheet analogy isn't too literal as I'll be using this for data with a more regular structure. For instance, one grid might have 3 columns where every item in column one is a CellStr, every item in column two a CellStr, and every item in column 3 a CellDbl,

Re: [Haskell-cafe] representing spreadsheets

2011-05-27 Thread Eric Rasmussen
Stephen, thanks for the link! The paper was an interesting read and definitely gave me some ideas. Tillmann -- you are correct in that it's very similar to a database. I frequently go through this process: 1) Receive a flat file (various formats) of tabular data 2) Create a model of the data

Re: [Haskell-cafe] representing spreadsheets

2011-05-27 Thread Alexander Solla
On Fri, May 27, 2011 at 3:11 PM, Eric Rasmussen ericrasmus...@gmail.comwrote: Stephen, thanks for the link! The paper was an interesting read and definitely gave me some ideas. Tillmann -- you are correct in that it's very similar to a database. I frequently go through this process: 1)

Re: [Haskell-cafe] representing spreadsheets

2011-05-27 Thread Alexander Solla
On Fri, May 27, 2011 at 3:11 PM, Eric Rasmussen ericrasmus...@gmail.com wrote: Stephen, thanks for the link! The paper was an interesting read and definitely gave me some ideas. Tillmann -- you are correct in that it's very similar to a database. I frequently go through this process: 1) Receive

Re: [Haskell-cafe] representing spreadsheets

2011-05-27 Thread Eric Rasmussen
Thanks! I think GADTs may work nicely for this project, so I'm going to start building it out. On Fri, May 27, 2011 at 4:16 PM, Alexander Solla alex.so...@gmail.comwrote: On Fri, May 27, 2011 at 3:11 PM, Eric Rasmussen ericrasmus...@gmail.comwrote: Stephen, thanks for the link! The paper