Hi,
 
many thanks! The type signature helped fine:
 
let rtHistogram  = H.histogram numBuckets rtimesVec :: (V.Vector Double, V.Vector Double)
 
On the other hand, when I tried
{-# LANGUAGE NoMonomorphismRestriction #-}
 
ghci told me to add
{-# LANGUAGE FlexibleContexts #-}
 
after which it compiled, as long as I didn't try to additionally print it - there I got a similar error as before.
 
So I'll stick with the type signature :-)
 
thkx
Sigrid
 
Gesendet: Samstag, 19. Dezember 2015 um 19:20 Uhr
Von: "Marcin Mrotek" <marcin.jan.mrotek@gmail.com>
An: "Sigrid Keydana" <keydana@gmx.de>
Betreff: Re: [Haskell-cafe] No instance of ... error with Statistics.Sample.Histogram
You can try giving `rthistogram` an explicit type signature, like

rthistogram :: (Vector Double, Vector Double)

This might be related to "monomorphism restriction" too. You can try
turning it off with {-# LANGUAGE NoMonomorphismRestriction #-}, but
I'd advise you to read up on what it does before doing this (more or
less, it's on by default so that top-level things that look like
variables are monomorphic and thus can be shared. Polymorphic values
have to be recomputed every time they're used)

Best regards,
Marcin Mrotek