mirror of
https://github.com/github/semantic.git
synced 2025-01-04 21:47:07 +03:00
Simplify Data.Syntax.Literal.String
This commit is contained in:
parent
97d6cefb0b
commit
5010d8962d
@ -4,7 +4,6 @@ module Data.Syntax.Literal where
|
||||
import Data.Align.Generic
|
||||
import Data.Functor.Classes.Eq.Generic
|
||||
import Data.Functor.Classes.Show.Generic
|
||||
import Data.Union
|
||||
import GHC.Generics
|
||||
import Prologue hiding (Set)
|
||||
|
||||
@ -53,7 +52,7 @@ instance Show1 Range where liftShowsPrec = genericLiftShowsPrec
|
||||
|
||||
-- Strings, symbols
|
||||
|
||||
newtype String a = String { stringElements :: [Union '[InterpolationElement, TextElement] a] }
|
||||
newtype String a = String { stringElements :: [a] }
|
||||
deriving (Eq, Foldable, Functor, GAlign, Generic1, Show, Traversable)
|
||||
|
||||
instance Eq1 String where liftEq = genericLiftEq
|
||||
|
Loading…
Reference in New Issue
Block a user