Specify theta as a structure parameter!
Simplify test9.hs using structure parameters.
Simplify test9.hs further.
Make dimension of theta depend on the data.
Simplify test9.hs.
Simplify test9.hs
Simplify test9.hs
Simplify test9.hs.
Genericize test9.hs.