Skip to content

Using Floe with LLMs

LLMs don’t know Floe yet. You need to give them the language reference so they can write correct Floe code.

Paste this URL into your AI tool’s context:

https://floe-lang.dev/llms.txt

This is a condensed reference covering all Floe syntax, types, compilation rules, and stdlib functions.

Fetch it directly in a conversation:

@url https://floe-lang.dev/llms.txt

Or add it to your project’s CLAUDE.md so every conversation has it:

## Floe Reference
When writing .fl files, fetch the language reference first:
https://floe-lang.dev/llms.txt

Add it as a doc in your project’s .cursor/rules/ directory, or paste the URL into the context panel when writing Floe.

Add to .github/copilot-instructions.md in your project:

When writing Floe (.fl) files, refer to the language reference at:
https://floe-lang.dev/llms.txt
Floe compiles to TypeScript. Key differences from TypeScript:
- Use `fn` instead of `function`
- Use `|>` pipes for data transformation
- Use `match` instead of switch/if-else chains
- Use `Result<T, E>` and `Option<T>` instead of null/exceptions
- No semicolons, no `let`/`var`, no classes

Download the reference and include it in your system prompt or context window:

Terminal window
curl -o llms.txt https://floe-lang.dev/llms.txt
  • Core syntax (functions, types, pipes, pattern matching)
  • Type system (records, unions, newtypes, opaque types, Result/Option)
  • Compilation rules (what Floe compiles to in TypeScript)
  • Standard library functions
  • Import system (trusted, try, for-blocks)
  • Common pitfalls and rules