madnight / asciichart

ASCII line charts in terminal ╭┈╯ Haskell port of kroitor/asciichart
MIT License
28 stars 2 forks source link

Error in array index. #1

Closed Dantara closed 4 years ago

Dantara commented 4 years ago

The plot function throws Error in array index in case of zero or one element in the list in its argument.

Dantara commented 4 years ago

Also, the same error will be thrown if all elements are equal. Example: plot [1,1,1,1].

madnight commented 4 years ago

Fixed in https://github.com/madnight/asciichart/commit/49cc4108149b0f782dba455809191302b9252bee

Thx for report!