fix[doc]: Move import to the right place
This commit is contained in:
parent
c20de441de
commit
0d8470a87f
1 changed files with 3 additions and 1 deletions
|
@ -3,7 +3,7 @@
|
||||||
module Language.Scalie.Ast.Pattern (Pattern(..)) where
|
module Language.Scalie.Ast.Pattern (Pattern(..)) where
|
||||||
import Prelude (Integer)
|
import Prelude (Integer)
|
||||||
import Text.Show (Show)
|
import Text.Show (Show)
|
||||||
import Text.Read (Read, readMaybe)
|
import Text.Read (Read)
|
||||||
import Data.Kind qualified
|
import Data.Kind qualified
|
||||||
|
|
||||||
|
|
||||||
|
@ -13,6 +13,7 @@ import Data.Kind qualified
|
||||||
-- RawInt 15
|
-- RawInt 15
|
||||||
--
|
--
|
||||||
-- >>> import Data.Maybe (Maybe)
|
-- >>> import Data.Maybe (Maybe)
|
||||||
|
-- >>> import Text.Read (readMaybe)
|
||||||
-- >>> readMaybe "RawInt (-5)" :: Maybe Pattern
|
-- >>> readMaybe "RawInt (-5)" :: Maybe Pattern
|
||||||
-- Just (RawInt (-5))
|
-- Just (RawInt (-5))
|
||||||
--
|
--
|
||||||
|
@ -21,6 +22,7 @@ import Data.Kind qualified
|
||||||
--
|
--
|
||||||
-- >>> readMaybe "RawInt (5)" :: Maybe Pattern
|
-- >>> readMaybe "RawInt (5)" :: Maybe Pattern
|
||||||
-- Just (RawInt 5)
|
-- Just (RawInt 5)
|
||||||
|
|
||||||
type Pattern :: Data.Kind.Type
|
type Pattern :: Data.Kind.Type
|
||||||
data Pattern
|
data Pattern
|
||||||
= RawInt Integer
|
= RawInt Integer
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue