Skip to content

Commit

Permalink
Add missing file
Browse files Browse the repository at this point in the history
  • Loading branch information
arnavb committed Jun 1, 2024
1 parent 9ca35fc commit 37e2504
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Converters.fs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
module JimBroBot.Converters

open JimBroBot.DomainTypes

let stringToExerciseType str =
match str with
| "set" -> SetBased
| "speed" -> SpeedBased
| "time" -> TimeBased
| _ -> failwith "Unexpected exercise type"

0 comments on commit 37e2504

Please sign in to comment.