Skip to content

Conversation

@Anton-4
Copy link
Collaborator

@Anton-4 Anton-4 commented Apr 2, 2025

This function makes the situation described in #106 a lot nicer :)

@Anton-4 Anton-4 changed the title Fix #106 DO NOT MERGE Fix #106 Apr 2, 2025
Comment on lines -12 to -15
expect "INFO: Checking if sqlite3 is installed...\r\n"

expect "3*" # sqlite3 version

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is no longer in the output.

Comment on lines +57 to +65
TodoStatus : [Todo, Completed, InProgress]

decode_db_status : Str -> Result TodoStatus _
decode_db_status = |status_str|
when status_str is
"todo" -> Ok(Todo)
"completed" -> Ok(Completed)
"in-progress" -> Ok(InProgress)
_ -> Err(ParseError("Unknown status str: ${status_str}"))
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To demonstrate the new map_value_result function.

@Anton-4 Anton-4 changed the title DO NOT MERGE Fix #106 Fix #106 Apr 3, 2025
@Anton-4 Anton-4 merged commit 135f9db into main Apr 5, 2025
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants