
13 Dec
2013
13 Dec
'13
9:20 p.m.
On Sat, Dec 14, 2013 at 4:07 AM, Andrew Fleckenstein < andrew.fleckenstein@gmail.com> wrote:
I know it has something to do with types,
Right! :)
but whenever I try to add a type signature to the functions it just messes everything up even more.
This works: let a :: [Double]; a = [-1,2,-6,2] This works too: let a :: Num a => [a]; a = [-1,2,-6,2] What do you think are the pros and cons of either? -- Kim-Ee