Skip to content

gren-lang/core

Folders and files

NameName
Last commit message
Last commit date

Latest commit

1b8ce3d · Mar 18, 2025
Mar 16, 2025
Sep 30, 2022
Mar 18, 2025
Mar 15, 2025
Mar 18, 2025
Feb 10, 2025
Feb 10, 2025
Aug 19, 2022
Sep 30, 2022
Nov 23, 2024
Feb 24, 2022
Aug 19, 2022
Feb 10, 2025
Mar 16, 2025
Jan 16, 2025

Repository files navigation

Core Libraries

Every Gren project needs this package!

It provides basic functionality like addition and subtraction as well as data structures like arrays, dictionaries, and sets.

New to Gren? Go to gren-lang.org for an overview.

Default Imports

The modules in this package are so common, that some of them are imported by default in all Gren files. So it is as if every Gren file starts with these imports:

import Basics exposing (..)
import Array exposing (Array)
import Maybe exposing (Maybe(..))
import Result exposing (Result(..))
import String exposing (String)
import Char exposing (Char)

import Debug

import Platform exposing (Program)
import Platform.Cmd as Cmd exposing (Cmd)
import Platform.Sub as Sub exposing (Sub)

The intention is to include things that are both extremely useful and very unlikely to overlap with anything that anyone will ever write in a library. By keeping the set of default imports relatively small, it also becomes easier to use whatever version of map suits your fancy. Finally, it makes it easier to figure out where the heck a function is coming from.