jgm / skylighting

A Haskell syntax highlighting library with tokenizers derived from KDE syntax highlighting descriptions
194 stars 62 forks source link

Made types more descriptive #64

Closed anchpop closed 5 years ago

anchpop commented 5 years ago

Got bit by this. Hope this change is correct :)

jgm commented 5 years ago

The reason it was the way it was is that the function we call from HXT just has String. So with this change we're relying on our knowledge that FilePath is a synonym for String. Maybe that's okay, I'm not sure.