Skip to content
This repository was archived by the owner on Nov 18, 2023. It is now read-only.
This repository was archived by the owner on Nov 18, 2023. It is now read-only.

matrix display error #60

@acapi

Description

@acapi

It is not possible to correctly display an array in WinGHCi.

prettyMatrix $ matrix 4 4 $ \(i,j) -> 2*i - j

"\9484 \9488\n\9474 1 0 -1 -2 \9474\n\9474 3 2 1 0 \9474\n\9474 5 4 3 2 \9474\n\9474 7 6 5 4 \9474\n\9492 \9496"
it :: String
(0.00 secs, 193,072 bytes)

putStrLn it
*** Exception: : hPutChar: invalid argument (invalid character)


It's all OK if:

putStrLn $ filter (notElem ['\9488','\9474','\9484','\9492','\9496'] ) $ prettyMatrix $ matrix 4 4 $ \(i,j) -> 2*i - j

1 0 -1 -2
3 2 1 0
5 4 3 2
7 6 5 4

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions