Application model functional code implemented in Haskell/ForSyDe using the synchronous (SY) model of computation (MoC). This is an executable model.
Tested with "The Glorious Glasgow Haskell Compilation System", version 8.6.5.
% ghci EncoderDecoder.hs
then, follow the instructions within the code listing.
Please refer to https://forsyde.github.io/forsyde-shallow on ForSyDe installation details.