Idris-dev/test/records004/run
Benjamin Hodgson f1e8a4dcc9 Multiple record fields on one line (#2460)
You can now write this:
```
record Person where
  constructor MkPerson
  name, surname, middleName : String
```
- which is equivalent to:
```
record Person where
  constructor MkPerson
  name : String
  surname : String
  middleName : String
```

I changed the parser a little and added a test for the new functionality.
2015-07-26 16:29:26 +01:00

5 lines
94 B
Bash
Executable File

#!/usr/bin/env bash
idris $@ records004.idr -o records004
./records004
rm -f records004 *.ibc