fix[doc]: Move import to the right place

This commit is contained in:
vegowotenks 2025-08-14 10:44:37 +02:00
parent c20de441de
commit 0d8470a87f

View file

@ -3,7 +3,7 @@
module Language.Scalie.Ast.Pattern (Pattern(..)) where
import Prelude (Integer)
import Text.Show (Show)
import Text.Read (Read, readMaybe)
import Text.Read (Read)
import Data.Kind qualified
@ -13,6 +13,7 @@ import Data.Kind qualified
-- RawInt 15
--
-- >>> import Data.Maybe (Maybe)
-- >>> import Text.Read (readMaybe)
-- >>> readMaybe "RawInt (-5)" :: Maybe Pattern
-- Just (RawInt (-5))
--
@ -21,6 +22,7 @@ import Data.Kind qualified
--
-- >>> readMaybe "RawInt (5)" :: Maybe Pattern
-- Just (RawInt 5)
type Pattern :: Data.Kind.Type
data Pattern
= RawInt Integer