yaxu / feedforward

GNU General Public License v3.0
129 stars 10 forks source link

"size" parameter: ambiguous reference #20

Closed ndr-brt closed 3 years ago

ndr-brt commented 3 years ago

evaluating: s "bd" # size 0.5

returns error:

{errMsg = "<interactive>:1:29: error:
    Ambiguous occurrence \8216size\8217
    It could refer to
       either \8216Sound.Tidal.Context.size\8217,
              imported from \8216Sound.Tidal.Context\8217
              (and originally defined in \8216Sound.Tidal.Params\8217)
           or \8216Data.Map.size\8217,
              imported from \8216Data.Map\8217
              (and originally defined in \8216Data.Map.Internal\8217)"}
yaxu commented 3 years ago

Ah thanks! I always use sz so didn't spot this

ndr-brt commented 3 years ago

It's a conflict with Data.Map.size. What functions/types of Data.Map are used? If I remove it from imports I get:

Compile error: <interactive>:3:49: error:
    Not in scope: type constructor or class ‘Map’
ndr-brt commented 3 years ago

Found, it's Data.Map.Map