-
-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Closes gleam-lang/website#458
- Loading branch information
Showing
5 changed files
with
21 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
import gleam/bytes_builder | ||
import gleam/string_builder.{type StringBuilder} | ||
import gleam/bytes_tree | ||
import gleam/string_tree.{type StringTree} | ||
|
||
pub fn main() { | ||
// Referring to a type in a qualified way | ||
let _bytes: bytes_builder.BytesBuilder = bytes_builder.new() | ||
let _bytes: bytes_tree.BytesTree = bytes_tree.new() | ||
|
||
// Refering to a type in an unqualified way | ||
let _text: StringBuilder = string_builder.new() | ||
let _text: StringTree = string_tree.new() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,4 @@ | ||
import CodeFlask from "https://cdn.jsdelivr.net/npm/[email protected]/+esm"; | ||
|
||
console.log(CodeFlask); | ||
globalThis.CodeFlask = CodeFlask; | ||
|
||
const output = document.querySelector("#output"); | ||
|