With Dual Source Dual Energy

Print source definition

Module Main where import System.Random gen = (random (mkStdGen 0)) :: (Bool, StdGen) myadd :: Int -> Int myadd x = 2 * x main = do print "finished"

Then I can get information on myadd and random but I cannot print the source. Here is what I can do in ghci (with lambdabot) :

*Main GOA> :src foldr foldr f z = z foldr f z (x:xs) = f x (foldr f z xs) *Main GOA> :i myadd myadd :: Int -> Int - Defined at test.hs:7:1 *Main GOA> :src myadd Source not found. I don't think I can be your friend on Facebook anymore. *Main GOA> :i random class Random a where ... random :: RandomGen g => g -> (a, g) ... - Defined in ‘System.Random’ *Main GOA> :src random Source not found. Listen, broccoli brains, I don't have time to listen to this trash.

lambdabot seems to be able to print the definitions of foldr but not functions defined in the project (myadd) or functions in the cabal depedencies (random).

Is it possible for me to print out the definitions of things like myadd and random, using some feature of lambdabot? I know you can use Hoogle for random but I want to specifically know if there is any way to use ghci or lambdabot to print out the source definitions.

Interesting facts
  • The Philippines foremost hero Dr. Jose P. Rizal is on record the first Filipino and the first Philippine historiographer to have read an authentic Antonio Pigafetta account. He read the Carlo Amoretti edition of the Ambrosiana manuscript, the only Italian text of four extant manuscripts of Pigafetta’s account of Magellan’s voyage. Amoretti...
Dictionary of Quotations from Ancient and Modern, English and Foreign Sources: Including Phrases, Mottoes, Maxims, Proverbs, Definitions, Aphorisms, ... Speculation, Science, Art, Religion, an
Book (Nabu Press)
WAWO WAWO Samsung Galaxy S6 Case, PU Leather Wallet Flip Cover Case with Credit Card ID/Pocket Money Slot for Samsung Galaxy S6 - Black
Wireless (WAWO)
  • Exclusively Designed for Samsung Galaxy S6
  • Stylish folio-type flip wallet case with PU leather
  • Slim and perfect fit with a perfect lightweight design
  • 2 card slots and cash crib to put your essential ID and cards and some pocket money
  • Protect your phone from everyday bumps, scratches, marks and dust.
URPOWER® 10000mAh High Capacity Dual-Port USB Charger Power Bank Backup External Portable Mobile Battery Pocket Extensive Charger for iPhone 6 Plus,iPhone 6, iPhone 5s, 5c, 5, 4s, 4, 3gs, iPad 4, iPad Air, the New iPad, iPad Mini; Samsung Galaxy S5, S4, S3, S2, Note 4, Note 3, Note 2; HTC One, Evo, Droid Dna, Motorola Atrix, Droid, Google Glass, Nexus 4, LG Optimus,smart Watch,bluetooth Speakers or Headsets and Other Usb-charged Device (Apple Lightning Adapter NOT included)
Toy (URPOWER)
  • US free shipping,high quality,100% new, 4 capacity indicators for battery status,the appearance of fashion,LED light
  • High performance mAh external mobile battery charger fits for most digital devices
  • It is easy to carry, goe worry about your business trip/travelingod assistant
  • Stylish & portable design,perfect for long plane flights, road trips; Carry the power wherever you go; charge your devices any time any where
  • Security protection design: short-circuit and over current protection; The device will automatic shutdown when short circuit or overload output happened to avoid...
TaoTronics Humidifier Home Ultasonic Cool Mist (with Constant Humidity Mode, Mist Level Control, Timing Settings, Built-in Water Purifier, LED Nightlight, Zero Noise)
Health and Beauty (Humidifier)
  • Microporous Cartridge - filters the water from micro-organisms, calcium, and magnesium ions for a healthier mist
  • Tailored to your home: set humidity level and control the amount of mist. Designed to humidify the air in rooms up to 538 sq ft (50m²)
  • Over a gallon capacity and15 hour working time on a full tank of water will last well into the night
  • Ultrasonic humidifiers are incredibly silent so it will never disturb you
  • Others: Built-in timer; LED display; sleep mode; and a 360 degree rotatable nozzle
RAVPower Luster Mini 3000mAh Portable Charger Lipstick-Sized External Battery Pack Power Bank Charger,Fast Charging (Ultra Bright Flashlight with High/Low/Strobe Modes, 5V/1A Output) for iPhone 6,6 plus, 5S, 5C, 5, 4S, 4, iPod(Lightning Cable not Provided); Samsung Galaxy S5, S4, S3, S2, Note 2; Nexus 5, Nexus 4, HTC Sensation, One X V One X V S, EVO 4G, Thunderbolt; Nokia Lumia 1020, 920 900 N9; Motorola Razr; LG Google Nexu 4 and other Android & Apple Device, Smart Phones, Tablets (Gold)
Wireless (RAVPower)
  • Add more than a full charge or 9 hours of additional talk time to your iPhone 5 / 4 / 4S / 3G / 3GS. On most other phones, benefit from 1 full charge or 91+ hours...
  • Duo purpose design: Power bank and a flashlight.
  • Stylish, lipstick-shaped, lightweight design (4.17 x 0.9 x 0.9in, 2.57oz) fits easily into any pocket or bag.
  • Constructed using Grade A cells and premium microchips to ensure the highest quality. Charge time: 3-4 hours via AC 1A adapter (not included).
  • Package contents: RAVPower 3mAh External Battery, Micro USB cable, welcome guide, 12-month hassle-free warranty.(Apple Adapters- 31 pin and Lightning, NOT Included).
Related Posts