• Alfredo Di Napoli's avatar
    Drop 'All' data constructor from 'Lang' · 63fcd605
    Alfredo Di Napoli authored
    Removing the `All` data constructor from  the `Lang` datatype has
    several benifits, the main one being that we now have total functions
    for things like `toISO693`.
    
    This will make possible to write an uniform interface for stemming
    `stem :: Lang -> StemmingAlgorithm -> T.Text -> T.Text`, as now
    `Lang` will always map to a valid (ISO693) language.
    63fcd605
Core.hs 5.13 KB