Ticket #96 (closed defect: fixed)

Opened 5 years ago

Last modified 5 years ago

ellipsis in list generator expressions not comprehensive enough

Reported by: erikd@… Owned by: erikd
Priority: normal Milestone: 0.1.3
Component: Unknown Version:
Keywords: Cc:

Description

Something like

x = [ 1, 3 .. 99 ] ++ [ 100, 98 .. 2 ]

gives vastly different results in DDC in comparison to Haskell.

Change History

Changed 5 years ago by benl

  • milestone set to 0.1.3

Changed 5 years ago by erikd

  • owner set to erikd

Changed 5 years ago by erikd

  • status changed from new to closed
  • resolution set to fixed

Fixed by the following batch of patches.

Sun Aug 16 16:26:26 EST 2009 Erik de Castro Lopo <erikd@…>

  • Add passing tests for bug #96.

Sun Aug 16 15:55:39 EST 2009 Ben.Lippmeier@…

  • Fixup uniqbinds for rangeIntStep, rangeIntStepL, rangeInfIntStepL The way primitive functions are handled is fairly nasty. It'd be good to have a better solution for the stuff in Shared.VarPrim?

Sun Aug 16 15:11:17 EST 2009 Ben.Lippmeier@…

  • Refactor Type.Util.Elaborate some.

Sun Aug 16 15:28:06 EST 2009 Erik de Castro Lopo <erikd@…>

  • Progress towards fixing #96.

Sat Aug 15 21:42:40 EST 2009 Erik de Castro Lopo <erikd@…>

  • Add function Data.List.rangeIntStep.

Sat Aug 15 15:46:08 EST 2009 Erik de Castro Lopo <erikd@…>

  • Update Data.List.rangeInt/rangeIntL to handle counting down eg [4 .. 1].

Sat Aug 15 14:24:52 EST 2009 Erik de Castro Lopo <erikd@…>

  • Update parser to handle [a, b .. c].

12: Sat Aug 15 13:38:27 EST 2009 Erik de Castro Lopo <erikd@…>

  • Add extra field to XListRange to handle things like [a, b .. c].
Note: See TracTickets for help on using tickets.