# [Haskell], 8 bytes

<!-- language-all: lang-hs -->

    sequence

[Try it online!][TIO-k31wtsra]

## Less boring, 33 bytes

<!-- language-all: lang-hs -->

    f[]=[[]]
    f(h:t)=[i:j|i<-h,j<-f t]

[Try it online!][TIO-k31xbba7]

[Haskell]: https://www.haskell.org/
[TIO-k31wtsra]: https://tio.run/##y0gszk7NyfmfZhvzvzi1sDQ1Lzn1f25iZp6CrUJKPpcCEBQUZeaVKKgopClERxvqKBjF6ihEG@somMTG4pcG0qY6CmY4lOkoGINUmOgoQBT9/5eclpOYXvxfN7mgAAA "Haskell – Try It Online"
[TIO-k31xbba7]: https://tio.run/##y0gszk7Nyfn/Py061jY6OjaWK00jw6pE0zY60yqrJtNGN0Mny0Y3TaEk9n9uYmaegq1CSj6XAhAUFGXmlSioKKQpREcb6igYxeooRBvrKJgATcArDaRNdRTMcCjTUTAGqTDRUYAo@g8A "Haskell – Try It Online"