mirror of
https://github.com/github/semantic.git
synced 2024-12-25 16:02:43 +03:00
Add a smart constructor for string primitives.
This commit is contained in:
parent
694bafed7e
commit
901e0172df
@ -19,6 +19,7 @@ module Data.Core
|
||||
, unit
|
||||
, bool
|
||||
, if'
|
||||
, string
|
||||
, load
|
||||
, edge
|
||||
, frame
|
||||
@ -154,6 +155,9 @@ bool = Core . Bool
|
||||
if' :: Core a -> Core a -> Core a -> Core a
|
||||
if' c t e = Core (If c t e)
|
||||
|
||||
string :: Text -> Core a
|
||||
string = Core . String
|
||||
|
||||
load :: Core a -> Core a
|
||||
load = Core . Load
|
||||
|
||||
|
@ -10,7 +10,7 @@ module Data.Core.Parser
|
||||
|
||||
import Control.Applicative
|
||||
import qualified Data.Char as Char
|
||||
import Data.Core hiding (edge)
|
||||
import Data.Core hiding (edge, string)
|
||||
import qualified Data.Core as Core
|
||||
import Data.Name
|
||||
import Data.Semigroup
|
||||
|
Loading…
Reference in New Issue
Block a user