title_body: How can I find the Haskell source code for the sqrt function?
upvoted_answer: By entering :i sqrt using ghci, we can see that sqrt is
  
  -- Defined in ‘GHC.Float’
  
  A quick google shows that the source code repo is on https://gitlab.haskell.org/ghc/ghc.
  Entering sqrt in the search bar for the repository yields several pages of interesting results (including tests). From what I see, using sqrt includes calling the corresponding sqrt operation on a CPU level (check out the x86 related code as one example).
  Of course, GHC is not the only implementation of Haskell, but at least within these realms, both terms are most often used as synonyms.
  Edit: OP found the implementation detail with this approach in https://gitlab.haskell.org/ghc/ghc/-/blob/master/libraries/base/GHC/Float.hs, where sqrt is defined as follows:
  sqrt x              =  x ** 0.5