1
1
mirror of https://github.com/anoma/juvix.git synced 2024-11-10 15:06:54 +03:00

move Scoped syntax directory

This commit is contained in:
Jan Mas Rovira 2022-01-18 17:29:04 +01:00
parent 7a0d86796c
commit 4e3c5dd947
4 changed files with 6 additions and 11 deletions

View File

@ -3,7 +3,7 @@ module Main (main) where
import MiniJuvix.Utils.Prelude
import qualified MiniJuvix.Syntax.Concrete.Parser as M
import qualified MiniJuvix.Syntax.Scoped.Scoper as M
import qualified MiniJuvix.Syntax.Concrete.Scoped.Scoper as M
import Options.Applicative
import Options.Applicative.Help.Pretty

View File

@ -15,7 +15,7 @@ import Data.Singletons
import Language.Haskell.TH.Syntax (Lift)
import MiniJuvix.Syntax.Concrete.Fixity
import MiniJuvix.Syntax.Concrete.Name
import qualified MiniJuvix.Syntax.Scoped.Name as S
import qualified MiniJuvix.Syntax.Concrete.Scoped.Name as S
import MiniJuvix.Utils.Prelude
--------------------------------------------------------------------------------

View File

@ -1,7 +1,7 @@
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE TemplateHaskell #-}
module MiniJuvix.Syntax.Scoped.Name where
module MiniJuvix.Syntax.Concrete.Scoped.Name where
import Data.Stream (Stream (Cons))
import Lens.Micro.Platform

View File

@ -3,7 +3,7 @@
-- | Limitations:
-- 1. A symbol introduced by a type signature can only be used once per Module.
module MiniJuvix.Syntax.Scoped.Scoper where
module MiniJuvix.Syntax.Concrete.Scoped.Scoper where
import qualified Control.Monad.Combinators.Expr as P
import qualified Data.HashMap.Strict as HashMap
@ -15,8 +15,8 @@ import Lens.Micro.Platform
import qualified MiniJuvix.Syntax.Concrete.Base as P
import MiniJuvix.Syntax.Concrete.Language
import MiniJuvix.Syntax.Concrete.Parser (runModuleParserIO)
import MiniJuvix.Syntax.Scoped.Name (NameKind (KNameConstructor))
import qualified MiniJuvix.Syntax.Scoped.Name as S
import MiniJuvix.Syntax.Concrete.Scoped.Name (NameKind (KNameConstructor))
import qualified MiniJuvix.Syntax.Concrete.Scoped.Name as S
import MiniJuvix.Utils.Prelude hiding (Reader, State, ask, asks, evalState, get, gets, local, modify, put, runReader, runState)
import Polysemy
import Polysemy.Error hiding (fromEither)
@ -1268,11 +1268,6 @@ parsePatternSection sec = do
where
filePath = "tmp"
unfoldApp :: PrePattern -> Maybe (PrePattern, PrePattern)
unfoldApp p = case p of
PrePatternApp l r -> Just (l, r)
_ -> Nothing
-- | Unfolds applications. Checks that the leftmost thing in an application is a constructor
parsePrePattern ::
forall r.