mirror of
https://github.com/luau-lang/luau.git
synced 2024-11-16 06:45:44 +08:00
041838a942
* First cut reading JSON into an Agda representation of Luau syntax
11 lines
302 B
Agda
11 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 #-}
|