mirror of
https://github.com/luau-lang/luau.git
synced 2024-12-13 13:30:40 +00:00
041838a942
* First cut reading JSON into an Agda representation of Luau syntax
10 lines
302 B
Agda
10 lines
302 B
Agda
module FFI.Data.Text.Encoding where
|
|
|
|
open import Agda.Builtin.String using (String)
|
|
|
|
open import FFI.Data.ByteString using (ByteString)
|
|
|
|
{-# FOREIGN GHC import qualified Data.Text.Encoding #-}
|
|
|
|
postulate encodeUtf8 : String → ByteString
|
|
{-# COMPILE GHC encodeUtf8 = Data.Text.Encoding.encodeUtf8 #-}
|