summaryrefslogtreecommitdiff
path: root/libraries/ghc-compact/tests/compact_largemap.hs
blob: bc918c905b448d1111dd99ef1890563d40de2c6c (plain)
1
2
3
4
5
6
7
8
9
import GHC.Compact
import qualified Data.Map as Map

main = do
  let m = Map.fromList [(x,show x) | x <- [1..(10000::Integer)]]
  c <- compactWithSharing m
  print (length (show (getCompact c)))
  c <- compact m
  print (length (show (getCompact c)))