Skip to content

Instantly share code, notes, and snippets.

View smores56's full-sized avatar

Sam Mohr smores56

View GitHub Profile
@smores56
smores56 / ArgTypeSelector.roc
Created January 8, 2025 08:56
Weaver experimental API using terse builders
module [ArgTypeSelector.*, custom, str, u64]
# Making builders pass through this type sets up the type to parse each Arg into.
ArgTypeSelector := [ArgTypeSelector ()]
custom : ArgTypeSelector, Str, ValueParser a -> ArgValueParser a
custom = |ArgTypeSelector.(), type_name, parser|
ArgValueParser.({ type_name, parser })
str : ArgTypeSelector -> ArgValueParser Str
@smores56
smores56 / weaver-talk.md
Last active May 7, 2024 04:49
Presentation slides for my talk about github.com/smores56/weaver

Weaver

An ergonomic arg parsing library for the Roc programming language.


Table of Contents

  • Introductions
  • Why did I want to make this library?
@smores56
smores56 / keybase.md
Created October 14, 2020 14:31
Verification of my Keybase identity

Keybase proof

I hereby claim:

  • I am smores56 on github.
  • I am smores (https://keybase.io/smores) on keybase.
  • I have a public key ASAoP8dtt3jTtvkXRUPYgW-LFn8JSkmdr6YYNjpgkX_Wewo

To claim this, I am signing this object: