Last active
July 25, 2019 16:48
-
-
Save zraffer/f13cdf3da1fff8aa8f251542fc9ccea7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{-# OPTIONS --without-K --safe --no-sized-types --no-guardedness #-} | |
module Agda.Builtin.FromString where | |
open import Agda.Primitive | |
open import Agda.Builtin.String | |
record IsString {a} (A : Set a) : Set (lsuc a) where | |
field | |
Constraint : String → Set a | |
fromString : (s : String) {{_ : Constraint s}} → A | |
open IsString {{...}} public using (fromString) | |
{-# BUILTIN FROMSTRING fromString #-} | |
{-# DISPLAY IsString.fromString _ s = fromString s #-} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment