mirror of
https://github.com/github/semantic.git
synced 2024-11-24 17:04:47 +03:00
commit
54419fa27a
@ -5,8 +5,8 @@ module Data.Syntax.Expression where
|
||||
import Prelude hiding (null)
|
||||
import Prologue hiding (This, index, null)
|
||||
|
||||
import Control.Abstract hiding (Bitwise (..), Call, Member, Void)
|
||||
import Data.Abstract.Evaluatable as Abstract hiding (Member, Void)
|
||||
import Control.Abstract hiding (Bitwise (..), Call, Member)
|
||||
import Data.Abstract.Evaluatable as Abstract hiding (Member)
|
||||
import Data.Abstract.Name as Name
|
||||
import Data.Abstract.Number (liftIntegralFrac, liftReal, liftedExponent, liftedFloorDiv)
|
||||
import Data.Fixed
|
||||
|
@ -2,7 +2,7 @@
|
||||
{-# OPTIONS_GHC -Wno-missing-export-lists #-}
|
||||
module Data.Syntax.Type where
|
||||
|
||||
import Data.Abstract.Evaluatable hiding (Void)
|
||||
import Data.Abstract.Evaluatable
|
||||
import Data.JSON.Fields
|
||||
import Diffing.Algorithm
|
||||
import Prelude hiding (Bool, Float, Int, Double)
|
||||
|
@ -29,7 +29,7 @@ renderTreeGraph :: (Ord vertex, Recursive t, ToTreeGraph vertex (Base t)) => t -
|
||||
renderTreeGraph = simplify . runGraph . cata toTreeGraph
|
||||
|
||||
runGraph :: ReaderC (Graph vertex)
|
||||
(FreshC VoidC) (Graph vertex)
|
||||
(FreshC PureC) (Graph vertex)
|
||||
-> Graph vertex
|
||||
runGraph = run . runFresh' . runReader mempty
|
||||
where
|
||||
|
@ -20,7 +20,7 @@ import qualified Data.Source as Source
|
||||
|
||||
type Translator
|
||||
= StateC [Scope]
|
||||
( ErrorC TranslationError VoidC)
|
||||
( ErrorC TranslationError PureC)
|
||||
|
||||
contextualizing :: ProcessT Translator Token Fragment
|
||||
contextualizing = repeatedly $ await >>= \case
|
||||
|
@ -39,7 +39,7 @@ type ContextToken = (Text, Maybe Range)
|
||||
|
||||
type Contextualizer
|
||||
= StateC [ContextToken]
|
||||
( ErrorC TranslationError VoidC)
|
||||
( ErrorC TranslationError PureC)
|
||||
|
||||
contextualizing :: Blob -> Machine.ProcessT Contextualizer Token Tag
|
||||
contextualizing Blob{..} = repeatedly $ await >>= \case
|
||||
|
2
vendor/fused-effects
vendored
2
vendor/fused-effects
vendored
@ -1 +1 @@
|
||||
Subproject commit 17b0a846aa50fd0dea157624c031a550d8edd469
|
||||
Subproject commit 25e66959978147b9ee1510ec3d90cd0045cfba54
|
Loading…
Reference in New Issue
Block a user