<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>Hi,</div>
<div> </div>
<div>I get the error</div>
<div> </div>
<div>No instance for (Num b0) arising from a use of ‘histogram’<br/>
The type variable ‘b0’ is ambiguous</div>
<div>
<div>Relevant bindings include<br/>
rthistogram :: (v10 Double, v10 b0)</div>
<div> </div>
</div>
<div>for the following simple code:</div>
<div> </div>
<div>import Data.Vector as V (fromList, Vector)</div>
<div>import Statistics.Sample.Histogram as H</div>
<div>
<div>let rtimes = [1,4,3,7,4,3] :: [Double]<br/>
let rtimesVec = V.fromList rtimes<br/>
let numBuckets = 3<br/>
let rthistogram = H.histogram numBuckets rtimesVec</div>
<div> </div>
<div>
<div>What am I doing wrong?</div>
<div>Any help greatly appreciated :-)</div>
<div> </div>
<div>Cheers</div>
<div>Sigrid</div>
<div> </div>
</div>
</div></div></body></html>