NICTA / text1

Non-empty text
Other
3 stars 1 forks source link

Cons/Snoc tragedy #3

Open llelf opened 7 years ago

llelf commented 7 years ago

Instances are wrong.

h> let t = Text1 'a' ""
h> t ^? _last
Nothing
h> t & _head .~ 'x'
"a"

As a matter of fact, there’s seems to be no way to write the instances properly because of the way lens defines the class, https://github.com/ekmett/lens/issues/537.

So… remove instances?

tonymorris commented 7 years ago

ya flamin right mate.