haskell-debugger-0.13.0.0: test/golden/T234/lib/Lib.hs
module Lib (mainish) where
import Data.List (intercalate)
import GHC.Debugger.View.Class
newtype ColonList = ColonList [String]
deriving Show
instance DebugView ColonList where
debugValue (ColonList xs) = simpleValue (intercalate ":" xs) False
debugFields _ = pure (VarFields [])
mainish :: IO ()
mainish = do
let value = mkValue
print value
mkValue :: ColonList
mkValue = ColonList ["alpha", "beta", "gamma"]
{-# OPAQUE mkValue #-}