I'd like to know how to define this as a list within Haskell so that I could perform operations such as tail, reverse and length:
cars = "lamborghinis are my favourite types of car" I've tried:
let cars = [lamborghinis,are,my,favourite,types,of,car] let cars = ["lamborghinis","are","my","favourite","types","of","car"] let cars = ['lamborghinis','are','my','favourite','types','of','car'] I have been using http://learnyouahaskell.com/starting-out as a tutorial as I am new to Haskell and I can't see where I'm going wrong, I thought my first attempt above would be correct as that it how it does it in the tutorial but with numbers instead of words.
The error I am getting is: parse error on input 'of.
Any ideas where I'm going wrong? Thanks.