jputcu / serialport

Cross platform haskell library for using the serial port
Other
43 stars 36 forks source link

Add Read and Show instances for CommSpeed, StopBits, Parity, FlowControl #9

Open metametaclass opened 13 years ago

metametaclass commented 13 years ago

Read instance for port settings types can be useful for reading port configuration from text files/command line args

jputcu commented 13 years ago

A Read and Show for the SerialPortSettings data is a good suggestion.

Do you have any specific format in mind? e.g. "9600 8 n 1..."?

supki commented 12 years ago

Why not just derive them? It's slightly inconvenient to add orphan instances anytime debug is needed.

dilawar commented 8 years ago

:+1:

JSON format? Or simple key=value format is also OK.