1. Aleksey Khudyakov
  2. histogram-fill


Aleksey Khudyakov  committed 2d959f6

Make Hisotogram data type strict

Lazy data type can (and will) to space leaks.

  • Participants
  • Parent commits ab6ce3c
  • Branches default

Comments (0)

Files changed (1)

File histogram-fill/Data/Histogram/Generic.hs

View file
 --   [@bin@] binning. It should be instance of 'Bin'. Check that type class description for details.
 --   [@a@] type of bin content.
-data Histogram v bin a = Histogram bin (Maybe (a,a)) (v a)
+data Histogram v bin a = Histogram !bin !(Maybe (a,a)) !(v a)
                          deriving (Eq)
 -- | Create histogram from binning algorithm and vector with