Debian Codegraph @

src/TextShow/Control/Monad/ST.hs

raw
1 {-# LANGUAGE OverloadedStrings #-}
2 {-# OPTIONS_GHC -Wno-orphans #-}
3 {-|
4 Module: TextShow.Control.Monad.ST
5 Copyright: (C) 2014-2017 Ryan Scott
6 License: BSD-style (see the file LICENSE)
7 Maintainer: Ryan Scott
8 Stability: Provisional
9 Portability: GHC
10
11 'TextShow' instance for strict 'ST'.
12
13 /Since: 2/
14 -}
15 module TextShow.Control.Monad.ST () where
16
17 import Control.Monad.ST (ST)
18 import TextShow.Classes (TextShow(..), TextShow1(..), TextShow2(..))
19
20 -- | /Since: 2/
21 instance TextShow (ST s a) where
22 showb = liftShowbPrec undefined undefined 0
23 {-# INLINE showb #-}
24
25 -- | /Since: 2/
26 instance TextShow1 (ST s) where
27 liftShowbPrec = liftShowbPrec2 undefined undefined
28 {-# INLINE liftShowbPrec #-}
29
30 -- | /Since: 2/
31 instance TextShow2 ST where
32 liftShowbPrec2 _ _ _ _ _ _ = "<<ST action>>"
33 {-# INLINE liftShowbPrec2 #-}