Yep, that fixed it. 

On Fri 19 Oct, 2018, 4:44 PM , <amindfv@gmail.com> wrote:
If you don't have it already, does adding "{-# LANGUAGE ExtendedDefaultRules #-}" to the top of the file fix it?

If having that doesn't fix the issue, I'd be very interested to see a repro example! (And to know what version of GHC you're using)

Tom

> El 19 oct 2018, a las 03:06, Ben Grange <lagrange123@gmail.com> escribió:
>
> Hi guys,
>
> Sorry to bother you with a boring question, but has anyone encountered  ambiguous type variable errors in the compilation of vivid work? I'm trying to compile the example from the github page.
>
> In the line:
> a <- lfTri (freq_ 0.2) ? KR ~* 0.1 ~+ 0.1
>
> I'm getting:
> euterpea/thesound.hs:38:16: error:
>     • Ambiguous type variable ‘s0’ arising from a use of ‘freq_’
>       prevents the constraint ‘(ToSig s0 '["note"])’ from being solved.
>       Probable fix: use a type annotation to specify what ‘s0’ should be.
>
> Thanks in advance,
> Ben
> _______________________________________________
> Haskell-art mailing list -- haskell-art@we.lurk.org
> To unsubscribe send an email to haskell-art-leave@we.lurk.org
_______________________________________________
Haskell-art mailing list -- haskell-art@we.lurk.org
To unsubscribe send an email to haskell-art-leave@we.lurk.org