Is there a way to print a function or type of expression on the command line in a compiled Haskell program, just like ghci has :t , which prints a type?
Haskell
ghci
:t
With a Typeable constraint (from Data.Typeable ) you can use show . typeOf show . typeOf .
Typeable
Data.Typeable
show . typeOf
Source: https://habr.com/ru/post/946025/More articles:Failed to start jQuery event for mobile clicks - jqueryReturns a string with the entered newline characters - python-3.xGrand Central Dispatch vs ThreadPool Performance in Xamarin iOS - c #Sass problem when I use the --watch option - sassA subroutine that returns a hash - splits it into separate variables - functionHow to sort the vector of points based on the y axis? - c ++How to configure only css for html5 range of sliders - vertical? - inputThe ng-repeat element does not update when the array changes - angularjsThe title of the title is missing from the cross-search request on S3 in Chrome. - google-chromegoogle play geofence onHandleIntent - androidAll Articles