Skip to content

Instantly share code, notes, and snippets.

@axman6
Last active April 22, 2017 00:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save axman6/378565f01e768c27e3612082b91e601f to your computer and use it in GitHub Desktop.
Save axman6/378565f01e768c27e3612082b91e601f to your computer and use it in GitHub Desktop.
Haskell multiline string problem
allPowerStationsQuery :: Query () (Vector PowerStation2)
allPowerStationsQuery =
statement
"SELECT participant, station_name, region, dispatch_type, \
\ category, classification, fuel_source_primary,\
\ fuel_source_descriptor, tech_type_primary,\
\ physical_unit_no, unit_size_m_w, aggregation,\
\ duid, reg_cap_m_w, max_cap_m_w, max_r_o_c_per_min\
\FROM duid_location;"
enc dec True
where
enc = E.unit
dec = rowsVector powerStationDecoder
{-
error:
lexical error in string/character literal at character 'c'
-}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment