aboutsummaryrefslogtreecommitdiff
path: root/src/Foreign.gleam
blob: f364bcf13da480764cfac81fa6762454317df212 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
module Foreign exposing Foreign, new/1

doc """
Foreign data is data that we don't know the type of yet.
We likely get data like this from interop with Erlang, or from
IO with the outside world.
"""
external type Foreign

doc """
Convert any Gleam data into Foreign data.
"""
external new : |a| -> Foreign = :gleam_native.identity