quantities icon indicating copy to clipboard operation
quantities copied to clipboard

Can parse neither "decameter" nor "dam"

Open eltix opened this issue 6 years ago • 0 comments

All other units seem to be working fine from my experience but I encounter what looks like a bug when trying to parse decameters (1 decameter = 10 meter). Here is an example:

test :: IO ()
  let y2 = fromString "12 decameter"
  putStrLn $ tshow y2

which gives:

Left (UndefinedUnitError "decameter")

I encounter the same issue with "dam" instead of "decameter".
The Data.Quantities.DefaultUnits module suggests however that both these units are valid:

  -- decimal prefixes
  [...]
  ,"deca- =  1e+1  = da-"
  [...]

eltix avatar Aug 29 '18 14:08 eltix