title: Is there a way to extract strings by index in Haskell?
body: <p>I'm trying to implement the Haskell equivalent of the Python:</p>
  
  <pre class="lang-py prettyprint-override"><code>&gt; "abcdef"[1:3]
  'bcd'
  </code></pre>
  
  <p>In fact, I'll try using the Haskell language for the first time. I do not know how to handle strings(or text???)</p>
  
  <p>substr :: Text -> Int -> Int -> Text
  ????
  I try to use 'take' and 'drop', but I do not know the exact order and function combination.</p>
  
  <pre class="lang-hs prettyprint-override"><code>substr "abcdef" 1 3
  “bcd”
  </code></pre>