haskell - Why I get indentation errors with nested let/guard block -
I am in the middle of writing a transpose function as a practice for the real world
< / P>
  transpose :: [i] four] - & gt; [Four] x = let's repeat lines = x transposed = tip split tab :: [string] -> [String] tax x | Zero xs = [] | All taps xs = [] | Otherwise = Protect = "" =>> Safe Head X = Head Secure Tiles "" = "" Secure Tile x = In Tail X (Map Safe Head X) :( Tip (Map Protected Tiles Xs )) Without transpose    the parsing error is  & gt; & gt; . . 
  After applying, I tried to write this code again:  :: [string] -> [string] tax x | zero xs = [] | all tap xs = [] | Otherwise = (map safe Ed X): (tip secure tail xs) where the safe head "" = '' safe head x = head x secure tail "but still that indentation error can not be cured. How can I write nested let / while / guard properly?    
  The error is on the previous row -  ''  is not a valid character: 
 / P>   securehead "" = '' safe head x = head x  
   
 
Comments
Post a Comment