Opened 12 years ago

Closed 12 years ago

#34 closed defect (fixed)

Ambiguous show instance.

Reported by: Ben Lippmeier Owned by:
Priority: normal Milestone: 3.2.0
Component: library Version:
Keywords: Cc:


Grigory Sarnitskiy reports:

Hello! I'm using repa, so maybe this issue is gone already.

Nevertheless, repa's Show instance is a bit ambiguous, e.g. show of Maybe (Array DIM1 Int)

"Just Array (Z :. 1) [...]"

Wouldn't it be better to have

"Just (Array (Z :. 1) [...])"

just like elsewhere in Haskell? For example

show $ Just $ Just 5
"Just (Just 5)"

Change History (2)

comment:1 Changed 12 years ago by Ben Lippmeier


comment:2 Changed 12 years ago by Ben Lippmeier

Resolution: fixed
Status: newclosed

Fixed as we just used deriving Show for manifest arrays.

Note: See TracTickets for help on using tickets.