1
1
mirror of https://github.com/github/semantic.git synced 2024-12-29 01:42:43 +03:00

Make everything work with Analysis.Functor.Named.

This commit is contained in:
Patrick Thomson 2020-01-17 10:41:08 -05:00
parent a4a23e9a51
commit ef01408518
9 changed files with 16 additions and 6 deletions

View File

@ -50,6 +50,7 @@ library
Analysis.Effect.Heap
Analysis.File
Analysis.FlowInsensitive
Analysis.Functor.Named
Analysis.ImportGraph
Analysis.Intro
Analysis.Name

View File

@ -29,7 +29,7 @@ import qualified Analysis.Carrier.Env.Precise as A
import qualified Analysis.Carrier.Heap.Precise as A
import qualified Analysis.Effect.Domain as A
import Analysis.File
import Analysis.Name
import Analysis.Functor.Named
import Control.Algebra
import Control.Carrier.Fail.WithLoc
import Control.Carrier.Fresh.Strict

View File

@ -24,7 +24,7 @@ module Analysis.Effect.Domain
, run
) where
import Analysis.Name
import Analysis.Functor.Named
import Control.Algebra
import Data.Text (Text)
import GHC.Generics (Generic1)

View File

@ -1,3 +1,6 @@
{-# LANGUAGE DeriveFoldable #-}
{-# LANGUAGE DeriveFunctor #-}
{-# LANGUAGE DeriveTraversable #-}
module Analysis.Functor.Named
( module Analysis.Name
, Named (..)
@ -7,7 +10,9 @@ module Analysis.Functor.Named
, namedValue
) where
import Analysis.Name
import Data.Function (on)
-- | Annotates an @a@ with a 'Name'-provided name, which is ignored for '==' and 'compare'.
data Named a = Named Name a

View File

@ -21,7 +21,7 @@ import qualified Analysis.Carrier.Heap.Monovariant as A
import qualified Analysis.Effect.Domain as A
import Analysis.File
import Analysis.FlowInsensitive
import Analysis.Name
import Analysis.Functor.Named
import Control.Algebra
import Control.Applicative (Alternative (..))
import Control.Carrier.Fail.WithLoc

View File

@ -11,7 +11,7 @@ module Analysis.Intro
, record
) where
import Analysis.Name
import Analysis.Functor.Named
import Control.Algebra
import Data.Text (Text)
import GHC.Generics (Generic1)

View File

@ -26,8 +26,8 @@ import qualified Analysis.Carrier.Heap.Monovariant as A
import qualified Analysis.Effect.Domain as A
import Analysis.File
import Analysis.FlowInsensitive
import Analysis.Functor.Named
import qualified Analysis.Intro as Intro
import Analysis.Name
import Control.Algebra
import Control.Applicative (Alternative (..))
import Control.Carrier.Fail.WithLoc

View File

@ -1,11 +1,13 @@
{-# LANGUAGE DeriveGeneric, DeriveTraversable, GeneralizedNewtypeDeriving, LambdaCase, OverloadedLists #-}
module Core.Name
( module Analysis.Name
, module Analysis.Functor.Named
, reservedNames
, isSimpleCharacter
, needsQuotation
) where
import Analysis.Functor.Named
import Analysis.Name
import qualified Data.Char as Char
import Data.HashSet (HashSet)

View File

@ -1,4 +1,6 @@
{-# LANGUAGE FlexibleContexts, GeneralizedNewtypeDeriving, TypeOperators #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE TypeOperators #-}
module Core.Parser
( core
, lit