Skip to content

Commit

Permalink
uppercase enums cases to have more idiomatic Rust output
Browse files Browse the repository at this point in the history
  • Loading branch information
lemastero committed Dec 17, 2023
1 parent 9ed1ef9 commit cd6e976
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/Hello.agda
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module test.hello where

-- simple record type
data Rgb : Set where
red green blue : Rgb
Red Green Blue : Rgb
{-# COMPILE AGDA2RUST Rgb #-}

-- simple function
Expand Down
4 changes: 2 additions & 2 deletions test/Hello.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
mod test.hello {
mod test {
enum Rgb {
red, green, blue
Red, Green, Blue
}


Expand Down

0 comments on commit cd6e976

Please sign in to comment.