74 66 bytes
- -2 bytes by H.PWiz by using
<>, then -6 by moving the
This now uses the newly free
<> operator (
Semigroup multiplication, requires GHC 8.4 to work without an import.)
Almost a standard Haskell quine, except the quine data is a tuple, which pairs the usual stringTry it online! (Cheats with an integer literal, which is multiplied by 10 before printing, adding an extra digit zeroimport since TIO doesn't have GHC 8.4 yet.)
How it works
main=putStr$is boilerplate to output the following string value.
fst<>showis a function that takes a tuple, and returns a string consisting of the first element of the tuple concatenated with the tuple's string representation. I.e.
(fst<>show)(s,t) = fst(s,t)<>show(s,t) = s++show(s,t)
(10*)<$>multiplies the last element of the following tuple by 10, adding a digit
0to its string representation.