Commit 2398cad8 authored by Camil Staps's avatar Camil Staps

Merge branch '229-document-packed-array-syntax' into 'master'

Document packed array syntax

Closes #229

See merge request !224
parents 088cd428 ddeec809
Pipeline #42208 passed with stages
in 19 minutes and 27 seconds
......@@ -164,7 +164,7 @@ where
"- {{`[!a!]`}}, a head-strict spine-strict list\n" +
"- {{`[|a]`}}, an overloaded list (one of the types above)"
arrays = [make_array kind \\ kind <- [[], ['!'], ['#']]]
arrays = [make_array kind \\ kind <- [[], ['!'], ['#'], ['32#']]]
where
make_array :: [Char] -> TypeDefEntry
make_array k =
......@@ -183,8 +183,9 @@ where
description = "These types of array are available:\n\n" +
"- `{a}`, a normal array\n" +
"- `{#a}`, an unboxed strict array (elements are stored directly, without pointers)\n" +
"- `{!a}`, a strict array (the elements are in root normal form)"
"- `{!a}`, a strict array (the elements are in root normal form)\n" +
"- `{#a}`, an unboxed array (elements are stored directly, without pointers)\n" +
"- `{32#a}`, a packed array (only `{32#Int}` and `{32#Real}`, for 32-bit integer and real arrays)"
tuples = [make_tuple n \\ n <- [2..32]]
where
......
Subproject commit 399f0baf1f02d0cc89a3f52b5b037e2194aa55f8
Subproject commit 6b37880be58e5c64418ea0bf87a9f1f7ff5bd66d
#!/bin/bash
export CLEANDATE="2020-04-21"
export CLEANDATE="2020-05-10"
export CLEAN_PLATFORM=x86
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment