hare

[hare] The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

types.ha (393B)


      1 // SPDX-License-Identifier: MPL-2.0
      2 // (c) Hare authors <https://harelang.org>
      3 
      4 // Returned when more data is needed, i.e. when an incomplete UTF-8 sequence is
      5 // encountered.
      6 export type more = void;
      7 
      8 // Returned when an invalid UTF-8 sequence was found.
      9 export type invalid = !void;
     10 
     11 // Converts an error into a human-friendly string.
     12 export fn strerror(err: invalid) str = "Invalid UTF-8";